Skip to content

Commit d4754db

Browse files
author
Kanchalai Tanglertsampan
committed
Update baseline from merging with master
1 parent 11f6eae commit d4754db

21 files changed

Lines changed: 53 additions & 18 deletions

File tree

tests/baselines/reference/importCallExpressionDeclarationEmit1.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ function returnDynamicLoad(path: string) {
1616
}
1717

1818
//// [importCallExpressionDeclarationEmit1.js]
19-
"use strict";
2019
Promise.resolve().then(() => require(getSpecifier()));
2120
var p0 = Promise.resolve().then(() => require(`${directory}\${moduleFile}`));
2221
var p1 = Promise.resolve().then(() => require(getSpecifier()));

tests/baselines/reference/importCallExpressionGrammarError.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const p3 = import(,);
1212
const p4 = import("pathToModule", "secondModule");
1313

1414
//// [importCallExpressionGrammarError.js]
15-
"use strict";
1615
var a = ["./0"];
1716
Promise.resolve().then(() => require(...["PathModule"]));
1817
var p1 = Promise.resolve().then(() => require(...a));

tests/baselines/reference/importCallExpressionInCJS1.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
2020
function foo() { return "foo"; }
2121
exports.foo = foo;
2222
//// [1.js]
23-
"use strict";
2423
Promise.resolve().then(() => require("./0"));
2524
var p1 = Promise.resolve().then(() => require("./0"));
2625
p1.then(zero => {

tests/baselines/reference/importCallExpressionInCJS2.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
2929
function backup() { return "backup"; }
3030
exports.backup = backup;
3131
//// [2.js]
32-
"use strict";
3332
async function compute(promise) {
3433
let j = await promise;
3534
if (!j) {

tests/baselines/reference/importCallExpressionInCJS3.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class B {
2424
}
2525
exports.B = B;
2626
//// [2.js]
27-
"use strict";
2827
// We use Promise<any> for now as there is no way to specify shape of module object
2928
function foo(x) {
3029
x.then(value => {

tests/baselines/reference/importCallExpressionInCJS5.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
4040
function backup() { return "backup"; }
4141
exports.backup = backup;
4242
//// [2.js]
43-
"use strict";
4443
class C {
4544
constructor() {
4645
this.myModule = Promise.resolve().then(() => require("./0"));
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//// [tests/cases/conformance/es2018/dynamicImport/importCallExpressionInScriptContext1.ts] ////
2+
3+
//// [0.ts]
4+
5+
export function foo() { return "foo"; }
6+
7+
//// [1.ts]
8+
var p1 = import("./0");
9+
function arguments() { } // this is allow as the file doesn't have implicit "use strict"
10+
11+
//// [0.js]
12+
"use strict";
13+
Object.defineProperty(exports, "__esModule", { value: true });
14+
function foo() { return "foo"; }
15+
exports.foo = foo;
16+
//// [1.js]
17+
var p1 = Promise.resolve().then(() => require("./0"));
18+
function arguments() { } // this is allow as the file doesn't have implicit "use strict"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
2+
3+
export function foo() { return "foo"; }
4+
>foo : Symbol(foo, Decl(0.ts, 0, 0))
5+
6+
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
7+
var p1 = import("./0");
8+
>p1 : Symbol(p1, Decl(1.ts, 0, 3))
9+
10+
function arguments() { } // this is allow as the file doesn't have implicit "use strict"
11+
>arguments : Symbol(arguments, Decl(1.ts, 0, 23))
12+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=== tests/cases/conformance/es2018/dynamicImport/0.ts ===
2+
3+
export function foo() { return "foo"; }
4+
>foo : () => string
5+
>"foo" : "foo"
6+
7+
=== tests/cases/conformance/es2018/dynamicImport/1.ts ===
8+
var p1 = import("./0");
9+
>p1 : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
10+
>import("./0") : Promise<typeof "tests/cases/conformance/es2018/dynamicImport/0">
11+
>"./0" : "./0"
12+
13+
function arguments() { } // this is allow as the file doesn't have implicit "use strict"
14+
>arguments : () => void
15+

tests/baselines/reference/importCallExpressionInSystem1.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ System.register([], function (exports_1, context_1) {
2828
});
2929
//// [1.js]
3030
System.register([], function (exports_1, context_1) {
31-
"use strict";
3231
var __moduleName = context_1 && context_1.id;
3332
function foo() {
3433
const p2 = context_1.import("./0");

0 commit comments

Comments
 (0)