TypeScript/tests/baselines/reference/alwaysStrictModule.js
Slawomir Sadziak 29a85e02ab Fix #10758 Add compiler option to parse in strict mode
* add compiler option alwaysStrict
 * compile in strict mode when option is set
 * emit "use strict"
2016-10-10 00:03:33 +02:00

18 lines
267 B
TypeScript

//// [alwaysStrictModule.ts]
module M {
export function f() {
var arguments = [];
}
}
//// [alwaysStrictModule.js]
"use strict";
var M;
(function (M) {
function f() {
var arguments = [];
}
M.f = f;
})(M || (M = {}));