packages/babel-plugin-transform-modules-commonjs/test/fixtures/misc/import-shadowed-assign/output.js
raw symbols SCIP| 1 | "use strict"; |
| 2 | |
| 3 | var _x = require("x"); |
| 4 | function f(foo) { |
| 5 | foo = 2; |
| 6 | [foo] = []; |
| 7 | ({ |
| 8 | foo |
| 9 | } = {}); |
| 10 | } |
| 11 | _x.foo = (2, function () { |
| 12 | throw new Error('"' + "foo" + '" is read-only.'); |
| 13 | }()); |
| 14 | [foo] = ([], function () { |
| 15 | throw new Error('"' + "foo" + '" is read-only.'); |
| 16 | }()); |
| 17 | ({ |
| 18 | foo |
| 19 | } = ({}, function () { |
| 20 | throw new Error('"' + "foo" + '" is read-only.'); |
| 21 | }())); |