Debian Codegraph @

packages/babel-plugin-proposal-dynamic-import/test/fixtures/commonjs/exec-throw/exec.js

raw
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");