MIRROR: javascript for 馃悳's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 15 lines 493 B view raw
1function getImportBinding() { 2 return import; 3} 4 5export async function verifyImportBinding(assert, assertEq) { 6 let importBinding = null; 7 for (let i = 0; i < 600; i++) { 8 importBinding = getImportBinding(); 9 } 10 11 assert(typeof importBinding === "function", "hot inline helper returns import binding"); 12 13 const imported = await importBinding("./test_jit_inline_special_obj_dep.mjs"); 14 assertEq(imported.marker, "inline-special-obj", "returned import binding loads sibling module"); 15}