11 lines
338 B
TypeScript
11 lines
338 B
TypeScript
// @declaration: true
|
|
// For an array binding pattern with empty elements,
|
|
// we will not make any modification and will emit
|
|
// the similar binding pattern users' have written
|
|
function baz([]) { }
|
|
function baz1([] = [1,2,3]) { }
|
|
function baz2([[]] = [[1,2,3]]) { }
|
|
|
|
function baz3({}) { }
|
|
function baz4({} = { x: 10 }) { }
|
|
|