* Add support for destructuring well-known and late-bound names * Add test of not present late bound prop
13 lines
254 B
TypeScript
13 lines
254 B
TypeScript
// @target: es6
|
|
let { [Symbol.iterator]: destructured } = [];
|
|
void destructured;
|
|
|
|
const named = "prop";
|
|
|
|
let { [named]: computed } = { prop: "b" };
|
|
void computed;
|
|
|
|
const notPresent = "prop2";
|
|
|
|
let { [notPresent]: computed2 } = { prop: "b" };
|