Skip to content

Commit eb5048e

Browse files
committed
Accept baselines
1 parent 3497c59 commit eb5048e

File tree

94 files changed

+442
-1274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+442
-1274
lines changed

testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function foo(x) {
3232
var y = x; // Ok
3333
}
3434
foo(5);
35-
foo(E.A);
35+
foo(0 /* E.A */);
3636
class A {
3737
a;
3838
}

testdata/baselines/reference/submodule/compiler/assignmentNonObjectTypeConstraints.js.diff

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
var y = x; // Ok
1515
}
1616
foo(5);
17-
-foo(0 /* E.A */);
18-
+foo(E.A);
17+
foo(0 /* E.A */);
1918
class A {
2019
+ a;
2120
}

testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ function foo1() {
2929
})(E || (E = {}));
3030
}
3131
function foo2() {
32-
return E.A;
32+
return 0 /* E.A */;
3333
let E;
3434
(function (E) {
3535
E[E["A"] = 0] = "A";
3636
})(E || (E = {}));
3737
}
3838
const config = {
39-
a: AfterObject.A,
39+
a: 2 /* AfterObject.A */,
4040
};
4141
var AfterObject;
4242
(function (AfterObject) {

testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef.js.diff

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
--- old.blockScopedEnumVariablesUseBeforeDef.js
22
+++ new.blockScopedEnumVariablesUseBeforeDef.js
3-
@@= skipped -28, +28 lines =@@
4-
})(E || (E = {}));
3+
@@= skipped -29, +29 lines =@@
54
}
65
function foo2() {
7-
- return 0 /* E.A */;
8-
+ return E.A;
6+
return 0 /* E.A */;
97
+ let E;
108
+ (function (E) {
119
+ E[E["A"] = 0] = "A";
1210
+ })(E || (E = {}));
1311
}
1412
const config = {
15-
- a: 2 /* AfterObject.A */,
16-
+ a: AfterObject.A,
13+
a: 2 /* AfterObject.A */,
1714
};
1815
+var AfterObject;
1916
+(function (AfterObject) {

testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ function foo1() {
2929
})(E || (E = {}));
3030
}
3131
function foo2() {
32-
return E.A;
32+
return 0 /* E.A */;
3333
let E;
3434
(function (E) {
3535
E[E["A"] = 0] = "A";
3636
})(E || (E = {}));
3737
}
3838
const config = {
39-
a: AfterObject.A,
39+
a: 2 /* AfterObject.A */,
4040
};
4141
var AfterObject;
4242
(function (AfterObject) {

testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_preserve.js.diff

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

testdata/baselines/reference/submodule/compiler/blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ function foo1() {
2929
})(E || (E = {}));
3030
}
3131
function foo2() {
32-
return E.A;
32+
return 0 /* E.A */;
3333
let E;
3434
(function (E) {
3535
E[E["A"] = 0] = "A";
3636
})(E || (E = {}));
3737
}
3838
const config = {
39-
a: AfterObject.A,
39+
a: 2 /* AfterObject.A */,
4040
};
4141
var AfterObject;
4242
(function (AfterObject) {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- old.blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js
2+
+++ new.blockScopedEnumVariablesUseBeforeDef_verbatimModuleSyntax.js
3+
@@= skipped -28, +28 lines =@@
4+
})(E || (E = {}));
5+
}
6+
function foo2() {
7+
- return E.A;
8+
+ return 0 /* E.A */;
9+
let E;
10+
(function (E) {
11+
E[E["A"] = 0] = "A";
12+
})(E || (E = {}));
13+
}
14+
const config = {
15+
- a: AfterObject.A,
16+
+ a: 2 /* AfterObject.A */,
17+
};
18+
var AfterObject;
19+
(function (AfterObject) {

testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ var color;
136136
color[color["green"] = 1] = "green";
137137
color[color["blue"] = 2] = "blue";
138138
})(color || (color = {}));
139-
var shade = color.green;
139+
var shade = 1;
140140

141141

142142
//// [commentsdoNotEmitComments.d.ts]

testdata/baselines/reference/submodule/compiler/commentsdoNotEmitComments.js.diff

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@
2929
}
3030
m1.b = b;
3131
})(m1 || (m1 = {}));
32-
-var shade = 1;
3332
+var color;
3433
+(function (color) {
3534
+ color[color["red"] = 0] = "red";
3635
+ color[color["green"] = 1] = "green";
3736
+ color[color["blue"] = 2] = "blue";
3837
+})(color || (color = {}));
39-
+var shade = color.green;
38+
var shade = 1;
4039

4140

4241
//// [commentsdoNotEmitComments.d.ts]

0 commit comments

Comments
 (0)