Skip to content

Commit b159944

Browse files
Accepted baselines.
1 parent ebf486f commit b159944

6 files changed

+81
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//// [emptyArrayBindingPatternParameter04.ts]
2+
3+
4+
function f([] = [1,2,3,4]) {
5+
var x, y, z;
6+
}
7+
8+
//// [emptyArrayBindingPatternParameter04.js]
9+
function f(_a) {
10+
var x, y, z;
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter04.ts ===
2+
3+
4+
function f([] = [1,2,3,4]) {
5+
>f : Symbol(f, Decl(emptyArrayBindingPatternParameter04.ts, 0, 0))
6+
7+
var x, y, z;
8+
>x : Symbol(x, Decl(emptyArrayBindingPatternParameter04.ts, 3, 7))
9+
>y : Symbol(y, Decl(emptyArrayBindingPatternParameter04.ts, 3, 10))
10+
>z : Symbol(z, Decl(emptyArrayBindingPatternParameter04.ts, 3, 13))
11+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter04.ts ===
2+
3+
4+
function f([] = [1,2,3,4]) {
5+
>f : ([]?: number[]) => void
6+
>[1,2,3,4] : number[]
7+
>1 : number
8+
>2 : number
9+
>3 : number
10+
>4 : number
11+
12+
var x, y, z;
13+
>x : any
14+
>y : any
15+
>z : any
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//// [emptyObjectBindingPatternParameter04.ts]
2+
3+
4+
function f({} = {a: 1, b: "2", c: true}) {
5+
var x, y, z;
6+
}
7+
8+
//// [emptyObjectBindingPatternParameter04.js]
9+
function f(_a) {
10+
var x, y, z;
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter04.ts ===
2+
3+
4+
function f({} = {a: 1, b: "2", c: true}) {
5+
>f : Symbol(f, Decl(emptyObjectBindingPatternParameter04.ts, 0, 0))
6+
>a : Symbol(a, Decl(emptyObjectBindingPatternParameter04.ts, 2, 17))
7+
>b : Symbol(b, Decl(emptyObjectBindingPatternParameter04.ts, 2, 22))
8+
>c : Symbol(c, Decl(emptyObjectBindingPatternParameter04.ts, 2, 30))
9+
10+
var x, y, z;
11+
>x : Symbol(x, Decl(emptyObjectBindingPatternParameter04.ts, 3, 7))
12+
>y : Symbol(y, Decl(emptyObjectBindingPatternParameter04.ts, 3, 10))
13+
>z : Symbol(z, Decl(emptyObjectBindingPatternParameter04.ts, 3, 13))
14+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
=== tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter04.ts ===
2+
3+
4+
function f({} = {a: 1, b: "2", c: true}) {
5+
>f : ({}?: { a: number; b: string; c: boolean; }) => void
6+
>{a: 1, b: "2", c: true} : { a: number; b: string; c: boolean; }
7+
>a : number
8+
>1 : number
9+
>b : string
10+
>"2" : string
11+
>c : boolean
12+
>true : boolean
13+
14+
var x, y, z;
15+
>x : any
16+
>y : any
17+
>z : any
18+
}

0 commit comments

Comments
 (0)