emit 'use strict' at the beginning of the function

This commit is contained in:
Vladimir Matveev
2014-07-18 16:59:52 -07:00
parent 1abedc30c4
commit 36c22d10c7
2 changed files with 26 additions and 19 deletions

View File

@@ -20,18 +20,18 @@ function bar(x: number = 10) {
//// [strictMode5.js]
function foo() {
"use strict";
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
}
"use strict";
}
var A = (function () {
function A() {
}
A.prototype.m = function () {
var _this = this;
"use strict";
var _this = this;
var v = function () {
return _this.n();
};
@@ -41,6 +41,6 @@ var A = (function () {
return A;
})();
function bar(x) {
if (x === void 0) { x = 10; }
"use strict";
if (x === void 0) { x = 10; }
}