-
-
Notifications
You must be signed in to change notification settings - Fork 496
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(transformer): conformance runner use `HelperLoaderMode::External…
…` in takeover mode (#7807) In "takeover" mode, transformer conformance test runner was using `HelperLoaderMode::Runtime`. Switch this to `HelperLoaderMode::External` to match standard test runner mode.
- Loading branch information
1 parent
afaaffa
commit 450bb33
Showing
36 changed files
with
106 additions
and
165 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
...in-transform-object-rest-spread/test/fixtures/object-rest/assignment-expression/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
({a1} = c1); | ||
var _c; | ||
_c = c2, {a2} = _c, b2 = _objectWithoutProperties(_c, ["a2"]), _c; | ||
_c = c2, {a2} = _c, b2 = babelHelpers.objectWithoutProperties(_c, ["a2"]), _c; | ||
var _c2; | ||
console.log((_c2 = c3, {a3} = _c2, b3 = _objectWithoutProperties(_c2, ["a3"]), _c2)); | ||
console.log((_c2 = c3, {a3} = _c2, b3 = babelHelpers.objectWithoutProperties(_c2, ["a3"]), _c2)); |
11 changes: 4 additions & 7 deletions
11
...abel-plugin-transform-object-rest-spread/test/fixtures/object-rest/catch-clause/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
const _excluded = ["a1"], _excluded2 = ["a2", "b2"], _excluded3 = ["c3"]; | ||
var _objectDestructuringEmpty = require("@babel/runtime/helpers/objectDestructuringEmpty"); | ||
var _extends = require("@babel/runtime/helpers/extends"); | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
try {} catch (_ref) { | ||
let a34 = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
let a34 = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref)); | ||
} | ||
try {} catch (_ref2) { | ||
let { a1 } = _ref2, b1 = _objectWithoutProperties(_ref2, _excluded); | ||
let { a1 } = _ref2, b1 = babelHelpers.objectWithoutProperties(_ref2, _excluded); | ||
} | ||
try {} catch (_ref3) { | ||
let { a2, b2 } = _ref3, c2 = _objectWithoutProperties(_ref3, _excluded2); | ||
let { a2, b2 } = _ref3, c2 = babelHelpers.objectWithoutProperties(_ref3, _excluded2); | ||
} | ||
try {} catch (_ref4) { | ||
let { a2, b2, c2: _ref5 } = _ref4, { c3 } = _ref5, c4 = _objectWithoutProperties(_ref5, _excluded3); | ||
let { a2, b2, c2: _ref5 } = _ref4, { c3 } = _ref5, c4 = babelHelpers.objectWithoutProperties(_ref5, _excluded3); | ||
} | ||
try {} catch (a) {} | ||
try {} catch ({ b }) {} |
4 changes: 1 addition & 3 deletions
4
...lugin-transform-object-rest-spread/test/fixtures/object-rest/duplicate-decl-bug/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
var _objectDestructuringEmpty = require("@babel/runtime/helpers/objectDestructuringEmpty"); | ||
var _extends = require("@babel/runtime/helpers/extends"); | ||
it("es7.objectRestSpread", () => { | ||
let original = { | ||
a: 1, | ||
b: 2 | ||
}; | ||
let copy = _extends({}, (_objectDestructuringEmpty(original), original)); | ||
let copy = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(original), original)); | ||
}); |
3 changes: 1 addition & 2 deletions
3
...ots/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/export/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
export var { b } = asdf2, c = _objectWithoutProperties(asdf2, ["b"]); | ||
export var { b } = asdf2, c = babelHelpers.objectWithoutProperties(asdf2, ["b"]); | ||
export var { bb, cc } = ads; | ||
export var [dd, ee, ...ff] = ads; |
7 changes: 3 additions & 4 deletions
7
...ugin-transform-object-rest-spread/test/fixtures/object-rest/for-x-array-pattern/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...-transform-object-rest-spread/test/fixtures/object-rest/for-x-completion-record/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
const _excluded = ["a"]; | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
for (var _ref of []) { | ||
var _ref2; | ||
_ref2 = _ref, {a} = _ref2, b = _objectWithoutProperties(_ref2, _excluded), _ref2; | ||
_ref2 = _ref, {a} = _ref2, b = babelHelpers.objectWithoutProperties(_ref2, _excluded), _ref2; | ||
} |
7 changes: 3 additions & 4 deletions
7
...shots/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/for-x/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...l-plugin-transform-object-rest-spread/test/fixtures/object-rest/impure-computed/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
var _toPropertyKey = require("@babel/runtime/helpers/toPropertyKey"); | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
var key, x, y, z; | ||
key = 1; | ||
var _$a = { | ||
1: 1, | ||
a: 1 | ||
}, _key = key++, { [_key]: y } = _$a, x = _objectWithoutProperties(_$a, [_key].map(_toPropertyKey)); | ||
}, _key = key++, { [_key]: y } = _$a, x = babelHelpers.objectWithoutProperties(_$a, [_key].map(babelHelpers.toPropertyKey)); | ||
expect(x).toEqual({ a: 1 }); | ||
expect(key).toBe(2); | ||
expect(y).toBe(1); | ||
key = 1; | ||
var _$ = { | ||
2: 2, | ||
3: 3 | ||
}, _key2 = ++key, _key3 = ++key, { [_key2]: y, [_key3]: z } = _$, rest = _objectWithoutProperties(_$, [_key2, _key3].map(_toPropertyKey)); | ||
}, _key2 = ++key, _key3 = ++key, { [_key2]: y, [_key3]: z } = _$, rest = babelHelpers.objectWithoutProperties(_$, [_key2, _key3].map(babelHelpers.toPropertyKey)); | ||
expect(y).toBe(2); | ||
expect(z).toBe(3); | ||
key = 2; | ||
var _$z; | ||
_$z = { | ||
2: "two", | ||
z: "zee" | ||
}, {[key]: y, z} = _$z, x = _objectWithoutProperties(_$z, [key, "z"].map(_toPropertyKey)), _$z; | ||
}, {[key]: y, z} = _$z, x = babelHelpers.objectWithoutProperties(_$z, [key, "z"].map(babelHelpers.toPropertyKey)), _$z; | ||
expect(y).toBe("two"); | ||
expect(x).toEqual({}); | ||
expect(z).toBe("zee"); |
3 changes: 1 addition & 2 deletions
3
...ts/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/nested-2/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
const test = { foo: { bar: { baz: { a: { | ||
x: 1, | ||
y: 2, | ||
z: 3 | ||
} } } } }; | ||
const { foo: { bar: { baz: { a: _ref } } } } = test, { x } = _ref, other = _objectWithoutProperties(_ref, ["x"]); | ||
const { foo: { bar: { baz: { a: _ref } } } } = test, { x } = _ref, other = babelHelpers.objectWithoutProperties(_ref, ["x"]); |
3 changes: 1 addition & 2 deletions
3
...el-plugin-transform-object-rest-spread/test/fixtures/object-rest/nested-array-2/output.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 3 additions & 4 deletions
7
...abel-plugin-transform-object-rest-spread/test/fixtures/object-rest/nested-array/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
const [a, _ref] = x, { b } = _ref, c = _objectWithoutProperties(_ref, ["b"]); | ||
let [d, _ref2] = x, { e } = _ref2, f = _objectWithoutProperties(_ref2, ["e"]); | ||
const [a, _ref] = x, { b } = _ref, c = babelHelpers.objectWithoutProperties(_ref, ["b"]); | ||
let [d, _ref2] = x, { e } = _ref2, f = babelHelpers.objectWithoutProperties(_ref2, ["e"]); | ||
var _ref3; | ||
var _ref4; | ||
[g, _ref3] = x, _ref4 = _ref3, {h} = _ref4, i = _objectWithoutProperties(_ref4, ["h"]), _ref4; | ||
[g, _ref3] = x, _ref4 = _ref3, {h} = _ref4, i = babelHelpers.objectWithoutProperties(_ref4, ["h"]), _ref4; |
8 changes: 3 additions & 5 deletions
8
...ugin-transform-object-rest-spread/test/fixtures/object-rest/nested-computed-key/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
var _objectDestructuringEmpty = require("@babel/runtime/helpers/objectDestructuringEmpty"); | ||
var _extends = require("@babel/runtime/helpers/extends"); | ||
const { [(_ref) => { | ||
let rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
let _ref2 = {}, b = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2)); | ||
}]: a, [(_ref3 = {}, {} = _ref3, d = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3)), _ref3)]: c } = {}; | ||
let rest = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref)); | ||
let _ref2 = {}, b = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref2), _ref2)); | ||
}]: a, [(_ref3 = {}, {} = _ref3, d = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref3), _ref3)), _ref3)]: c } = {}; |
8 changes: 3 additions & 5 deletions
8
...gin-transform-object-rest-spread/test/fixtures/object-rest/nested-default-value/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
var _objectDestructuringEmpty = require("@babel/runtime/helpers/objectDestructuringEmpty"); | ||
var _extends = require("@babel/runtime/helpers/extends"); | ||
const { a = (_ref) => { | ||
let rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
let _ref2 = {}, b = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2)); | ||
}, c = (_ref3 = {}, {} = _ref3, d = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3)), _ref3) } = {}; | ||
let rest = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref)); | ||
let _ref2 = {}, b = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref2), _ref2)); | ||
}, c = (_ref3 = {}, {} = _ref3, d = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref3), _ref3)), _ref3) } = {}; |
3 changes: 1 addition & 2 deletions
3
...-transform-object-rest-spread/test/fixtures/object-rest/nested-literal-property/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
let useState = [{ some: 42 }, () => null]; | ||
let { 0: _ref, "2": _ref2, 1: setState } = useState, { numeric } = _ref, rest1 = _objectWithoutProperties(_ref, ["numeric"]), { str } = _ref2, rest2 = _objectWithoutProperties(_ref2, ["str"]); | ||
let { 0: _ref, "2": _ref2, 1: setState } = useState, { numeric } = _ref, rest1 = babelHelpers.objectWithoutProperties(_ref, ["numeric"]), { str } = _ref2, rest2 = babelHelpers.objectWithoutProperties(_ref2, ["str"]); |
5 changes: 1 addition & 4 deletions
5
...abel-plugin-transform-object-rest-spread/test/fixtures/object-rest/nested-order/output.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
...hots/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/nested/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
const defunct = { outer: { inner: { | ||
three: "three", | ||
four: "four" | ||
} } }; | ||
const { outer: { inner: _ref } } = defunct, { three } = _ref, other = _objectWithoutProperties(_ref, ["three"]); | ||
const { outer: { inner: _ref } } = defunct, { three } = _ref, other = babelHelpers.objectWithoutProperties(_ref, ["three"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
...lugin-transform-object-rest-spread/test/fixtures/object-rest/null-destructuring/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
const _excluded = ["x"]; | ||
var _objectDestructuringEmpty = require("@babel/runtime/helpers/objectDestructuringEmpty"); | ||
var _extends = require("@babel/runtime/helpers/extends"); | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
expect(() => { | ||
var _ref = null, x = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
var _ref = null, x = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref)); | ||
}).toThrow(/null/); | ||
expect(() => { | ||
var _ref2 = null, { x } = _ref2, y = _objectWithoutProperties(_ref2, _excluded); | ||
var _ref2 = null, { x } = _ref2, y = babelHelpers.objectWithoutProperties(_ref2, _excluded); | ||
}).toThrow(/null/); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 8 additions & 11 deletions
19
...ct-rest-spread/test/fixtures/object-rest/parameters-object-rest-used-in-default/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
const _excluded = ["X"]; | ||
var _objectDestructuringEmpty = require("@babel/runtime/helpers/objectDestructuringEmpty"); | ||
var _extends = require("@babel/runtime/helpers/extends"); | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
(_ref, a = R) => { | ||
let R = _extends({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
let R = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref)); | ||
}; | ||
(_ref2, { a = { Y } }) => { | ||
let { X: Y } = _ref2, R = _objectWithoutProperties(_ref2, _excluded); | ||
let { X: Y } = _ref2, R = babelHelpers.objectWithoutProperties(_ref2, _excluded); | ||
}; | ||
(a = R, _ref3) => { | ||
let R = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3)); | ||
let R = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref3), _ref3)); | ||
}; | ||
(_ref4, e, c = 2, a = R, f = q) => { | ||
let R = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4)); | ||
let R = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref4), _ref4)); | ||
let q; | ||
}; | ||
(_ref5, a = f(R)) => { | ||
let R = _extends({}, (_objectDestructuringEmpty(_ref5), _ref5)); | ||
let R = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref5), _ref5)); | ||
}; | ||
(_ref6, { [R.key]: a = 42 }) => { | ||
let R = _extends({}, (_objectDestructuringEmpty(_ref6), _ref6)); | ||
let R = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref6), _ref6)); | ||
}; | ||
(_ref7, { a = { R: b } }) => { | ||
let R = _extends({}, (_objectDestructuringEmpty(_ref7), _ref7)); | ||
let R = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref7), _ref7)); | ||
}; | ||
(_ref8, { a = (R) => R } = { b: (R) => R }) => { | ||
let R = _extends({}, (_objectDestructuringEmpty(_ref8), _ref8)); | ||
let R = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref8), _ref8)); | ||
}; |
25 changes: 11 additions & 14 deletions
25
.../babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/parameters/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...hots/babel-plugin-transform-object-rest-spread/test/fixtures/object-rest/symbol/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
var _toPropertyKey = require("@babel/runtime/helpers/toPropertyKey"); | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
let _ref = {}, _Symbol$for = Symbol.for("foo"), { [_Symbol$for]: foo } = _ref, rest = _objectWithoutProperties(_ref, [_Symbol$for].map(_toPropertyKey)); | ||
let _ref = {}, _Symbol$for = Symbol.for("foo"), { [_Symbol$for]: foo } = _ref, rest = babelHelpers.objectWithoutProperties(_ref, [_Symbol$for].map(babelHelpers.toPropertyKey)); | ||
var _ref2, _Symbol$for2 = Symbol.for("foo"); | ||
_ref2 = {}, {[_Symbol$for2]: foo} = _ref2, rest = _objectWithoutProperties(_ref2, [_Symbol$for2].map(_toPropertyKey)), _ref2; | ||
if (_ref3 = {}, {[_Symbol$for3]: foo} = _ref3, rest = _objectWithoutProperties(_ref3, [_Symbol$for3].map(_toPropertyKey)), _ref3) {} | ||
_ref2 = {}, {[_Symbol$for2]: foo} = _ref2, rest = babelHelpers.objectWithoutProperties(_ref2, [_Symbol$for2].map(babelHelpers.toPropertyKey)), _ref2; | ||
if (_ref3 = {}, {[_Symbol$for3]: foo} = _ref3, rest = babelHelpers.objectWithoutProperties(_ref3, [_Symbol$for3].map(babelHelpers.toPropertyKey)), _ref3) {} |
4 changes: 1 addition & 3 deletions
4
...-spread/test/fixtures/object-rest/template-literal-allLiterals-true-no-hoisting/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
var _toPropertyKey = require("@babel/runtime/helpers/toPropertyKey"); | ||
var _objectWithoutProperties = require("@babel/runtime/helpers/objectWithoutProperties"); | ||
const example = () => { | ||
const input = {}; | ||
const foo = "foo"; | ||
var _input, _ref = `${foo}_bar`; | ||
_input = input, {[_ref]: country} = _input, rest = _objectWithoutProperties(_input, [_ref].map(_toPropertyKey)), _input; | ||
_input = input, {[_ref]: country} = _input, rest = babelHelpers.objectWithoutProperties(_input, [_ref].map(babelHelpers.toPropertyKey)), _input; | ||
}; |
Oops, something went wrong.