Skip to content

Commit 0ec38b7

Browse files
Accepted baselines.
1 parent 987dc1f commit 0ec38b7

18 files changed

+381
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//// [emptyAssignmentPatterns02_ES5.ts]
2+
3+
var a: any;
4+
let x, y, z, a1, a2, a3;
5+
6+
({} = { x, y, z } = a);
7+
([] = [ a1, a2, a3] = a);
8+
9+
//// [emptyAssignmentPatterns02_ES5.js]
10+
var a;
11+
var x, y, z, a1, a2, a3;
12+
(_a = (x = a.x, y = a.y, z = a.z, a), _a);
13+
(_b = (a1 = a[0], a2 = a[1], a3 = a[2], a), _b);
14+
var _a, _b;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts ===
2+
3+
var a: any;
4+
>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 3))
5+
6+
let x, y, z, a1, a2, a3;
7+
>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 3))
8+
>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 6))
9+
>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 9))
10+
>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 12))
11+
>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 16))
12+
>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 20))
13+
14+
({} = { x, y, z } = a);
15+
>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES5.ts, 4, 7))
16+
>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES5.ts, 4, 10))
17+
>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES5.ts, 4, 13))
18+
>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 3))
19+
20+
([] = [ a1, a2, a3] = a);
21+
>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 12))
22+
>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 16))
23+
>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES5.ts, 2, 20))
24+
>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES5.ts, 1, 3))
25+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES5.ts ===
2+
3+
var a: any;
4+
>a : any
5+
6+
let x, y, z, a1, a2, a3;
7+
>x : any
8+
>y : any
9+
>z : any
10+
>a1 : any
11+
>a2 : any
12+
>a3 : any
13+
14+
({} = { x, y, z } = a);
15+
>({} = { x, y, z } = a) : any
16+
>{} = { x, y, z } = a : any
17+
>{} : {}
18+
>{ x, y, z } = a : any
19+
>{ x, y, z } : { x: any; y: any; z: any; }
20+
>x : any
21+
>y : any
22+
>z : any
23+
>a : any
24+
25+
([] = [ a1, a2, a3] = a);
26+
>([] = [ a1, a2, a3] = a) : any
27+
>[] = [ a1, a2, a3] = a : any
28+
>[] : undefined[]
29+
>[ a1, a2, a3] = a : any
30+
>[ a1, a2, a3] : [any, any, any]
31+
>a1 : any
32+
>a2 : any
33+
>a3 : any
34+
>a : any
35+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//// [emptyAssignmentPatterns02_ES6.ts]
2+
3+
var a: any;
4+
let x, y, z, a1, a2, a3;
5+
6+
({} = { x, y, z } = a);
7+
([] = [ a1, a2, a3] = a);
8+
9+
//// [emptyAssignmentPatterns02_ES6.js]
10+
var a;
11+
let x, y, z, a1, a2, a3;
12+
({} = { x, y, z } = a);
13+
([] = [a1, a2, a3] = a);
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES6.ts ===
2+
3+
var a: any;
4+
>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES6.ts, 1, 3))
5+
6+
let x, y, z, a1, a2, a3;
7+
>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 3))
8+
>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 6))
9+
>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 9))
10+
>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 12))
11+
>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 16))
12+
>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 20))
13+
14+
({} = { x, y, z } = a);
15+
>x : Symbol(x, Decl(emptyAssignmentPatterns02_ES6.ts, 4, 7))
16+
>y : Symbol(y, Decl(emptyAssignmentPatterns02_ES6.ts, 4, 10))
17+
>z : Symbol(z, Decl(emptyAssignmentPatterns02_ES6.ts, 4, 13))
18+
>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES6.ts, 1, 3))
19+
20+
([] = [ a1, a2, a3] = a);
21+
>a1 : Symbol(a1, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 12))
22+
>a2 : Symbol(a2, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 16))
23+
>a3 : Symbol(a3, Decl(emptyAssignmentPatterns02_ES6.ts, 2, 20))
24+
>a : Symbol(a, Decl(emptyAssignmentPatterns02_ES6.ts, 1, 3))
25+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns02_ES6.ts ===
2+
3+
var a: any;
4+
>a : any
5+
6+
let x, y, z, a1, a2, a3;
7+
>x : any
8+
>y : any
9+
>z : any
10+
>a1 : any
11+
>a2 : any
12+
>a3 : any
13+
14+
({} = { x, y, z } = a);
15+
>({} = { x, y, z } = a) : any
16+
>{} = { x, y, z } = a : any
17+
>{} : {}
18+
>{ x, y, z } = a : any
19+
>{ x, y, z } : { x: any; y: any; z: any; }
20+
>x : any
21+
>y : any
22+
>z : any
23+
>a : any
24+
25+
([] = [ a1, a2, a3] = a);
26+
>([] = [ a1, a2, a3] = a) : any
27+
>[] = [ a1, a2, a3] = a : any
28+
>[] : undefined[]
29+
>[ a1, a2, a3] = a : any
30+
>[ a1, a2, a3] : [any, any, any]
31+
>a1 : any
32+
>a2 : any
33+
>a3 : any
34+
>a : any
35+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//// [emptyAssignmentPatterns03_ES5.ts]
2+
3+
var a: any;
4+
5+
({} = {} = a);
6+
([] = [] = a);
7+
8+
//// [emptyAssignmentPatterns03_ES5.js]
9+
var a;
10+
(_a = (, a), _a);
11+
(_b = (, a), _b);
12+
var _a, _b;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts ===
2+
3+
var a: any;
4+
>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5.ts, 1, 3))
5+
6+
({} = {} = a);
7+
>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5.ts, 1, 3))
8+
9+
([] = [] = a);
10+
>a : Symbol(a, Decl(emptyAssignmentPatterns03_ES5.ts, 1, 3))
11+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts ===
2+
3+
var a: any;
4+
>a : any
5+
6+
({} = {} = a);
7+
>({} = {} = a) : any
8+
>{} = {} = a : any
9+
>{} : {}
10+
>{} = a : any
11+
>{} : {}
12+
>a : any
13+
14+
([] = [] = a);
15+
>([] = [] = a) : any
16+
>[] = [] = a : any
17+
>[] : undefined[]
18+
>[] = a : any
19+
>[] : undefined[]
20+
>a : any
21+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//// [emptyAssignmentPatterns03_ES6.ts]
2+
3+
var a: any;
4+
5+
({} = {} = a);
6+
([] = [] = a);
7+
8+
//// [emptyAssignmentPatterns03_ES6.js]
9+
var a;
10+
({} = {} = a);
11+
([] = [] = a);

0 commit comments

Comments
 (0)