mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
12 lines
216 B
JavaScript
12 lines
216 B
JavaScript
expect(() => {
|
|
function f() { throw "should throw"; }
|
|
import(f());
|
|
}).toThrow("should throw");
|
|
|
|
expect(() => {
|
|
const a = {
|
|
get x() { throw "should throw"; },
|
|
};
|
|
import(a.x);
|
|
}).toThrow("should throw");
|