fix computed properties in es7 object rest/spread - thanks @AluisioASG!

This commit is contained in:
Sebastian McKenzie
2015-04-05 02:52:14 +10:00
parent dc98ac7c93
commit 320a39f4c4
3 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
var z = {};
var { ...x } = z;
var { x, ...y } = z;
var { [x]: x, ...y } = z;
(function({ x, ...y }) { })

View File

@@ -4,6 +4,8 @@ var z = {};
var x = babelHelpers.objectWithoutProperties(z, []);
var x = z.x;
var y = babelHelpers.objectWithoutProperties(z, ["x"]);
var x = z[x];
var y = babelHelpers.objectWithoutProperties(z, [x]);
(function (_ref) {
var x = _ref.x;