Skip to content

Commit 740fd9c

Browse files
Updated baselines.
1 parent 60ed259 commit 740fd9c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

tests/baselines/reference/declarationEmitDestructuring4.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ function baz4({} = { x: 10 }) { }
1616
// we will not make any modification and will emit
1717
// the similar binding pattern users' have written
1818
function baz(_a) { }
19-
function baz1(_a) { }
19+
function baz1(_a) {
20+
var _a = [1, 2, 3];
21+
}
2022
function baz2(_a) {
2123
var _b = (_a === void 0 ? [[1, 2, 3]] : _a)[0];
2224
}
2325
function baz3(_a) { }
24-
function baz4(_a) { }
26+
function baz4(_a) {
27+
var _a = { x: 10 };
28+
}
2529

2630

2731
//// [declarationEmitDestructuring4.d.ts]

tests/baselines/reference/emptyArrayBindingPatternParameter04.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ function f([] = [1,2,3,4]) {
77

88
//// [emptyArrayBindingPatternParameter04.js]
99
function f(_a) {
10+
var _a = [1, 2, 3, 4];
1011
var x, y, z;
1112
}

tests/baselines/reference/emptyObjectBindingPatternParameter04.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ function f({} = {a: 1, b: "2", c: true}) {
77

88
//// [emptyObjectBindingPatternParameter04.js]
99
function f(_a) {
10+
var _a = { a: 1, b: "2", c: true };
1011
var x, y, z;
1112
}

0 commit comments

Comments
 (0)