deno-musings/test_changer_other.mjs

21 lines
527 B
JavaScript
Raw Normal View History

2024-10-12 12:28:41 -04:00
/////////////////// injected /////////////////////////
const thisURL = new URL(import.meta.url)
const thisFile = thisURL.pathname;
if(!thisURL.search)
{
await import("./test_sockets.mjs").then(m=>m.Register(thisFile, (module)=>{
for(let key in module)
{
eval(`${key}=module.${key}`);
}
}));
}
////////////////////////////////////////////
import spoofHook from "./test_framework.mjs?changer_other"
export let changing = "456";
export function Component()
{
spoofHook();
}