change flag name

This commit is contained in:
Mohamed Hegazy
2016-02-05 16:30:01 -08:00
parent e58ba40d12
commit 622f469029
40 changed files with 100 additions and 100 deletions

View File

@@ -296,7 +296,7 @@ namespace ts {
description: Diagnostics.Allow_javascript_files_to_be_compiled
},
{
name: "emitNonStrictModules",
name: "noImplicitUseStrict",
type: "boolean",
description: Diagnostics.Do_not_emit_use_strict_directives_in_module_output
}

View File

@@ -7268,7 +7268,7 @@ const _super = (function (geti, seti) {
write(`], function(${exportFunctionForFile}, ${contextObjectForFile}) {`);
writeLine();
increaseIndent();
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.emitNonStrictModules);
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict);
writeLine();
write(`var __moduleName = ${contextObjectForFile} && ${contextObjectForFile}.id;`);
writeLine();
@@ -7374,7 +7374,7 @@ const _super = (function (geti, seti) {
writeModuleName(node, emitRelativePathAsModuleName);
emitAMDDependencies(node, /*includeNonAmdDependencies*/ true, emitRelativePathAsModuleName);
increaseIndent();
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/!compilerOptions.emitNonStrictModules);
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/!compilerOptions.noImplicitUseStrict);
emitExportStarHelper();
emitCaptureThisForNodeIfNecessary(node);
emitLinesStartingAt(node.statements, startIndex);
@@ -7386,7 +7386,7 @@ const _super = (function (geti, seti) {
}
function emitCommonJSModule(node: SourceFile) {
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ false, /*ensureUseStrict*/ !compilerOptions.emitNonStrictModules);
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ false, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict);
emitEmitHelpers(node);
collectExternalModuleInfo(node);
emitExportStarHelper();
@@ -7415,7 +7415,7 @@ const _super = (function (geti, seti) {
})(`);
emitAMDFactoryHeader(dependencyNames);
increaseIndent();
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.emitNonStrictModules);
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict);
emitExportStarHelper();
emitCaptureThisForNodeIfNecessary(node);
emitLinesStartingAt(node.statements, startIndex);

View File

@@ -2435,7 +2435,7 @@ namespace ts {
forceConsistentCasingInFileNames?: boolean;
allowSyntheticDefaultImports?: boolean;
allowJs?: boolean;
emitNonStrictModules?: boolean;
noImplicitUseStrict?: boolean;
/* @internal */ stripInternal?: boolean;
// Skip checking lib.d.ts to help speed up tests.

View File

@@ -1,5 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_amd.ts ===
export var x = 0;
>x : Symbol(x, Decl(emitNonStrictModules_amd.ts, 1, 10))

View File

@@ -1,6 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_amd.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,6 +0,0 @@
//// [emitNonStrictModules_commonjs.ts]
export var x = 0;
//// [emitNonStrictModules_commonjs.js]
exports.x = 0;

View File

@@ -1,5 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_commonjs.ts ===
export var x = 0;
>x : Symbol(x, Decl(emitNonStrictModules_commonjs.ts, 1, 10))

View File

@@ -1,6 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_commonjs.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,6 +0,0 @@
//// [emitNonStrictModules_es6.ts]
export var x = 0;
//// [emitNonStrictModules_es6.js]
export var x = 0;

View File

@@ -1,5 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_es6.ts ===
export var x = 0;
>x : Symbol(x, Decl(emitNonStrictModules_es6.ts, 1, 10))

View File

@@ -1,6 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_es6.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,5 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_system.ts ===
export var x = 0;
>x : Symbol(x, Decl(emitNonStrictModules_system.ts, 1, 10))

View File

@@ -1,6 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_system.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,5 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_umd.ts ===
export var x = 0;
>x : Symbol(x, Decl(emitNonStrictModules_umd.ts, 1, 10))

View File

@@ -1,6 +0,0 @@
=== tests/cases/compiler/emitNonStrictModules_umd.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,8 +1,8 @@
//// [emitNonStrictModules_amd.ts]
//// [noImplicitUseStrict_amd.ts]
export var x = 0;
//// [emitNonStrictModules_amd.js]
//// [noImplicitUseStrict_amd.js]
define(["require", "exports"], function (require, exports) {
exports.x = 0;
});

View File

@@ -0,0 +1,5 @@
=== tests/cases/compiler/noImplicitUseStrict_amd.ts ===
export var x = 0;
>x : Symbol(x, Decl(noImplicitUseStrict_amd.ts, 1, 10))

View File

@@ -0,0 +1,6 @@
=== tests/cases/compiler/noImplicitUseStrict_amd.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -0,0 +1,6 @@
//// [noImplicitUseStrict_commonjs.ts]
export var x = 0;
//// [noImplicitUseStrict_commonjs.js]
exports.x = 0;

View File

@@ -0,0 +1,5 @@
=== tests/cases/compiler/noImplicitUseStrict_commonjs.ts ===
export var x = 0;
>x : Symbol(x, Decl(noImplicitUseStrict_commonjs.ts, 1, 10))

View File

@@ -0,0 +1,6 @@
=== tests/cases/compiler/noImplicitUseStrict_commonjs.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -0,0 +1,6 @@
//// [noImplicitUseStrict_es6.ts]
export var x = 0;
//// [noImplicitUseStrict_es6.js]
export var x = 0;

View File

@@ -0,0 +1,5 @@
=== tests/cases/compiler/noImplicitUseStrict_es6.ts ===
export var x = 0;
>x : Symbol(x, Decl(noImplicitUseStrict_es6.ts, 1, 10))

View File

@@ -0,0 +1,6 @@
=== tests/cases/compiler/noImplicitUseStrict_es6.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,8 +1,8 @@
//// [emitNonStrictModules_system.ts]
//// [noImplicitUseStrict_system.ts]
export var x = 0;
//// [emitNonStrictModules_system.js]
//// [noImplicitUseStrict_system.js]
System.register([], function(exports_1, context_1) {
var __moduleName = context_1 && context_1.id;
var x;

View File

@@ -0,0 +1,5 @@
=== tests/cases/compiler/noImplicitUseStrict_system.ts ===
export var x = 0;
>x : Symbol(x, Decl(noImplicitUseStrict_system.ts, 1, 10))

View File

@@ -0,0 +1,6 @@
=== tests/cases/compiler/noImplicitUseStrict_system.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,8 +1,8 @@
//// [emitNonStrictModules_umd.ts]
//// [noImplicitUseStrict_umd.ts]
export var x = 0;
//// [emitNonStrictModules_umd.js]
//// [noImplicitUseStrict_umd.js]
(function (factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports); if (v !== undefined) module.exports = v;

View File

@@ -0,0 +1,5 @@
=== tests/cases/compiler/noImplicitUseStrict_umd.ts ===
export var x = 0;
>x : Symbol(x, Decl(noImplicitUseStrict_umd.ts, 1, 10))

View File

@@ -0,0 +1,6 @@
=== tests/cases/compiler/noImplicitUseStrict_umd.ts ===
export var x = 0;
>x : number
>0 : number

View File

@@ -1,4 +0,0 @@
// @module: amd
// @emitNonStrictModules: true
export var x = 0;

View File

@@ -1,4 +0,0 @@
// @module: commonjs
// @emitNonStrictModules: true
export var x = 0;

View File

@@ -1,5 +0,0 @@
// @module: es6
// @target: es6
// @emitNonStrictModules: true
export var x = 0;

View File

@@ -1,4 +0,0 @@
// @module: system
// @emitNonStrictModules: true
export var x = 0;

View File

@@ -1,4 +0,0 @@
// @module: umd
// @emitNonStrictModules: true
export var x = 0;

View File

@@ -0,0 +1,4 @@
// @module: amd
// @noImplicitUseStrict: true
export var x = 0;

View File

@@ -0,0 +1,4 @@
// @module: commonjs
// @noImplicitUseStrict: true
export var x = 0;

View File

@@ -0,0 +1,5 @@
// @module: es6
// @target: es6
// @noImplicitUseStrict: true
export var x = 0;

View File

@@ -0,0 +1,4 @@
// @module: system
// @noImplicitUseStrict: true
export var x = 0;

View File

@@ -0,0 +1,4 @@
// @module: umd
// @noImplicitUseStrict: true
export var x = 0;