TypeScript/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts
Yui 39e0cc61a7 Fix 16628: "undefined" exception when name of binding element in binding pattern is empty (#17132)
* Handle the case where binding pattern name element is empty

* Update tests and baselines

* Feedback from PR

* Handle empty binding patterns more generally in emitter

* Dont simply handling fo empty binding patterns and stay spec compliant

* PR feedback
2017-08-09 13:47:44 -07:00

9 lines
97 B
TypeScript

// @target: es5
// @declaration: true
var a: any;
({} = a);
([] = a);
var [,] = [1,2];