Skip to content

Commit 129b8ad

Browse files
author
Yui T
committed
Update baselines from merging with master
1 parent a26368a commit 129b8ad

File tree

4 files changed

+8
-52
lines changed

4 files changed

+8
-52
lines changed

tests/baselines/reference/declarationEmitDestructuring2.js

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,16 @@ function h1([a, [b], [[c]], {x = 10, y = [1, 2, 3], z: {a1, b1}}]){ }
66

77
//// [declarationEmitDestructuring2.js]
88
function f(_a) {
9-
var _b = _a === void 0 ? {
10-
x: 10,
11-
y: [
12-
2,
13-
4,
14-
6,
15-
8
16-
]
17-
} : _a, _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, _e = _d === void 0 ? [
18-
1,
19-
2,
20-
3,
21-
4
22-
] : _d, a = _e[0], b = _e[1], c = _e[2], d = _e[3];
9+
var _b = _a === void 0 ? { x: 10, y: [2, 4, 6, 8] } : _a, _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, _e = _d === void 0 ? [1, 2, 3, 4] : _d, a = _e[0], b = _e[1], c = _e[2], d = _e[3];
2310
}
2411
function g(_a) {
25-
var _b = _a === void 0 ? [
26-
1,
27-
2,
28-
3,
29-
4
30-
] : _a, a = _b[0], b = _b[1], c = _b[2], d = _b[3];
12+
var _b = _a === void 0 ? [1, 2, 3, 4] : _a, a = _b[0], b = _b[1], c = _b[2], d = _b[3];
3113
}
3214
function h(_a) {
3315
var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, a = _d[0], b = _d[1], c = _d[2], _e = _b.z, a1 = _e.a1, b1 = _e.b1;
3416
}
3517
function h1(_a) {
36-
var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, y = _d === void 0 ? [
37-
1,
38-
2,
39-
3
40-
] : _d, _e = _b.z, a1 = _e.a1, b1 = _e.b1;
18+
var a = _a[0], b = _a[1][0], c = _a[2][0][0], _b = _a[3], _c = _b.x, x = _c === void 0 ? 10 : _c, _d = _b.y, y = _d === void 0 ? [1, 2, 3] : _d, _e = _b.z, a1 = _e.a1, b1 = _e.b1;
4119
}
4220

4321

tests/baselines/reference/declarationEmitDestructuring3.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@ function bar(_a) {
99
var x = _a[0], z = _a[1], w = _a.slice(2);
1010
}
1111
function foo(_a) {
12-
var _b = _a === void 0 ? [
13-
1,
14-
"string",
15-
true
16-
] : _a, x = _b[0], y = _b.slice(1);
12+
var _b = _a === void 0 ? [1, "string", true] : _a, x = _b[0], y = _b.slice(1);
1713
}
1814

1915

tests/baselines/reference/declarationEmitDestructuring4.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,16 @@ function baz(_a) {
1919
var ;
2020
}
2121
function baz1(_a) {
22-
var _b = _a === void 0 ? [
23-
1,
24-
2,
25-
3
26-
] : _a;
22+
var _b = _a === void 0 ? [1, 2, 3] : _a;
2723
}
2824
function baz2(_a) {
29-
var _b = (_a === void 0 ? [
30-
[
31-
1,
32-
2,
33-
3
34-
]
35-
] : _a)[0];
25+
var _b = (_a === void 0 ? [[1, 2, 3]] : _a)[0];
3626
}
3727
function baz3(_a) {
3828
var ;
3929
}
4030
function baz4(_a) {
41-
var _b = _a === void 0 ? {
42-
x: 10
43-
} : _a;
31+
var _b = _a === void 0 ? { x: 10 } : _a;
4432
}
4533

4634

tests/baselines/reference/declarationEmitDestructuring5.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ function bar(_a) {
1616
var z = _a[0];
1717
}
1818
function bar1(_a) {
19-
var _b = _a === void 0 ? [
20-
1,
21-
3,
22-
4,
23-
6,
24-
7
25-
] : _a, z = _b[0];
19+
var _b = _a === void 0 ? [1, 3, 4, 6, 7] : _a, z = _b[0];
2620
}
2721
function bar2(_a) {
2822
var z = _a[2];

0 commit comments

Comments
 (0)