blob: 1c2a2b636a421602f0d01ac95afc44ae4abf2440 (
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, 'beta/import.js'));
}, 'beta - Function');
promise_test(() => {
return eval('import("./import.js?eval")')
.then(module => assert_equals(module.A.from, 'beta/import.js'));
}, 'beta - eval');
|