☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-proposal-dynamic-import
/
test
/
fixtures
/
commonjs
/
exec-throw
/
exec.js
☽
☼
packages/babel-plugin-proposal-dynamic-import/test/fixtures/commonjs/exec-throw/exec.js
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
expect(() => {
2
function f() { throw "should throw"; }
3
import(f());
4
}).toThrow("should throw");
5
6
expect(() => {
7
const a = {
8
get x() { throw "should throw"; },
9
};
10
import(a.x);
11
}).toThrow("should throw");