Skip to content

Commit 622f469

Browse files
committed
change flag name
1 parent e58ba40 commit 622f469

35 files changed

+84
-84
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ namespace ts {
296296
description: Diagnostics.Allow_javascript_files_to_be_compiled
297297
},
298298
{
299-
name: "emitNonStrictModules",
299+
name: "noImplicitUseStrict",
300300
type: "boolean",
301301
description: Diagnostics.Do_not_emit_use_strict_directives_in_module_output
302302
}

src/compiler/emitter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7268,7 +7268,7 @@ const _super = (function (geti, seti) {
72687268
write(`], function(${exportFunctionForFile}, ${contextObjectForFile}) {`);
72697269
writeLine();
72707270
increaseIndent();
7271-
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.emitNonStrictModules);
7271+
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict);
72727272
writeLine();
72737273
write(`var __moduleName = ${contextObjectForFile} && ${contextObjectForFile}.id;`);
72747274
writeLine();
@@ -7374,7 +7374,7 @@ const _super = (function (geti, seti) {
73747374
writeModuleName(node, emitRelativePathAsModuleName);
73757375
emitAMDDependencies(node, /*includeNonAmdDependencies*/ true, emitRelativePathAsModuleName);
73767376
increaseIndent();
7377-
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/!compilerOptions.emitNonStrictModules);
7377+
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/!compilerOptions.noImplicitUseStrict);
73787378
emitExportStarHelper();
73797379
emitCaptureThisForNodeIfNecessary(node);
73807380
emitLinesStartingAt(node.statements, startIndex);
@@ -7386,7 +7386,7 @@ const _super = (function (geti, seti) {
73867386
}
73877387

73887388
function emitCommonJSModule(node: SourceFile) {
7389-
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ false, /*ensureUseStrict*/ !compilerOptions.emitNonStrictModules);
7389+
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ false, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict);
73907390
emitEmitHelpers(node);
73917391
collectExternalModuleInfo(node);
73927392
emitExportStarHelper();
@@ -7415,7 +7415,7 @@ const _super = (function (geti, seti) {
74157415
})(`);
74167416
emitAMDFactoryHeader(dependencyNames);
74177417
increaseIndent();
7418-
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.emitNonStrictModules);
7418+
const startIndex = emitDirectivePrologues(node.statements, /*startWithNewLine*/ true, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict);
74197419
emitExportStarHelper();
74207420
emitCaptureThisForNodeIfNecessary(node);
74217421
emitLinesStartingAt(node.statements, startIndex);

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2435,7 +2435,7 @@ namespace ts {
24352435
forceConsistentCasingInFileNames?: boolean;
24362436
allowSyntheticDefaultImports?: boolean;
24372437
allowJs?: boolean;
2438-
emitNonStrictModules?: boolean;
2438+
noImplicitUseStrict?: boolean;
24392439
/* @internal */ stripInternal?: boolean;
24402440

24412441
// Skip checking lib.d.ts to help speed up tests.

tests/baselines/reference/emitNonStrictModules_amd.symbols

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/baselines/reference/emitNonStrictModules_amd.types

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/baselines/reference/emitNonStrictModules_commonjs.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/baselines/reference/emitNonStrictModules_commonjs.symbols

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/baselines/reference/emitNonStrictModules_commonjs.types

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/baselines/reference/emitNonStrictModules_es6.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/baselines/reference/emitNonStrictModules_es6.symbols

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)