Hoist omitted keys from object spread operator (#13384)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
var _excluded = ["foo"];
|
||||
|
||||
var _loop = function (foo, bar) {
|
||||
() => foo;
|
||||
|
||||
@@ -12,7 +14,7 @@ for (var _ref of {}) {
|
||||
var {
|
||||
foo
|
||||
} = _ref,
|
||||
bar = babelHelpers.objectWithoutPropertiesLoose(_ref, ["foo"]);
|
||||
bar = babelHelpers.objectWithoutPropertiesLoose(_ref, _excluded);
|
||||
|
||||
_loop(foo, bar);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user