packages/babel-plugin-proposal-object-rest-spread/test/fixtures/object-rest/null-destructuring-transform-destructuring/output.js
raw| 1 | const _excluded = ["x"]; |
| 2 | expect(() => { |
| 3 | var _ref = null, |
| 4 | x = babelHelpers.extends({}, (babelHelpers.objectDestructuringEmpty(_ref), _ref)); |
| 5 | }).toThrow(/null/); |
| 6 | expect(() => { |
| 7 | var _ref2 = null, |
| 8 | x = _ref2.x, |
| 9 | y = babelHelpers.objectWithoutProperties(_ref2, _excluded); |
| 10 | }).toThrow(/null/); |