blob: b470bc8ae5635fe3be564cf90fbc4598f2be6119 (
plain)
1
2
3
4
5
6
7
8
9
|
promise_test(() => {
return (new Function('w', 'return import(w)'))("./import.js?Function")
.then(module => assert_equals(module.A.from, 'gamma/import.js'));
}, 'gamma - Function');
promise_test(() => {
return eval('import("./import.js?eval")')
.then(module => assert_equals(module.A.from, 'gamma/import.js'));
}, 'gamma - eval');
|