Rename all proposal plugins to -proposal- from -transform- (#6570)

This commit is contained in:
Henry Zhu
2017-10-27 15:26:38 -04:00
committed by GitHub
parent a94aa54230
commit c41abd79a1
599 changed files with 372 additions and 372 deletions

View File

@@ -0,0 +1,22 @@
// var { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
// assert.equal(x, 1);
// assert.equal(y, 2);
// assert.deepEqual(z, { a: 3, b: 4 });
// var complex = {
// x: { a: 1, b: 2, c: 3 },
// };
// var {
// x: { a: xa, ...xbc }
// } = complex;
// assert.equal(xa, 1);
// assert.deepEqual(xbc, { b: 2, c: 3});
// // own properties
// function ownX({ ...properties }) {
// return properties.x;
// }
// assert.equal(ownX(Object.create({ x: 1 })), undefined);