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"
This commit is contained in:
Slawomir Sadziak
2016-10-09 00:49:51 +02:00
parent d34916abf8
commit 29a85e02ab
19 changed files with 170 additions and 2 deletions

View File

@@ -444,6 +444,11 @@ namespace ts {
name: "importHelpers",
type: "boolean",
description: Diagnostics.Import_emit_helpers_from_tslib
},
{
name: "alwaysStrict",
type: "boolean",
description: Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file
}
];