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