45 lines
782 B
JavaScript
45 lines
782 B
JavaScript
//// [strictMode5.ts]
|
|
function foo(...args) {
|
|
"use strict"
|
|
}
|
|
|
|
class A {
|
|
m() {
|
|
"use strict"
|
|
|
|
var v = () => {
|
|
return this.n();
|
|
};
|
|
}
|
|
n() {}
|
|
}
|
|
|
|
function bar(x: number = 10) {
|
|
"use strict"
|
|
}
|
|
|
|
//// [strictMode5.js]
|
|
function foo() {
|
|
"use strict";
|
|
var args = [];
|
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
args[_i - 0] = arguments[_i];
|
|
}
|
|
}
|
|
var A = (function () {
|
|
function A() {
|
|
}
|
|
A.prototype.m = function () {
|
|
"use strict";
|
|
var _this = this;
|
|
var v = function () {
|
|
return _this.n();
|
|
};
|
|
};
|
|
A.prototype.n = function () { };
|
|
return A;
|
|
})();
|
|
function bar(x) {
|
|
"use strict";
|
|
if (x === void 0) { x = 10; }
|
|
}
|