* add compiler option alwaysStrict * compile in strict mode when option is set * emit "use strict"
18 lines
267 B
TypeScript
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 = {}));
|