Ensure that the entire contents are simply 'use strict'.
This commit is contained in:
parent
3a35aa30da
commit
1e18618170
1 changed files with 1 additions and 1 deletions
|
@ -7636,7 +7636,7 @@ const _super = (function (geti, seti) {
|
|||
}
|
||||
|
||||
function isUseStrictPrologue(node: ExpressionStatement): boolean {
|
||||
return !!(node.expression as StringLiteral).text.match(/use strict/);
|
||||
return (node.expression as StringLiteral).text === "use strict";
|
||||
}
|
||||
|
||||
function ensureUseStrictPrologue(startWithNewLine: boolean, writeUseStrict: boolean) {
|
||||
|
|
Loading…
Reference in a new issue