
Now that module loading is implemented this just works :^). Since ShadowRealm explicitly passed a null ScriptOrModule we attempt to get the top most ScriptOrModule in HostImportModuleDynamically. This won't work in general as the web specifies other behavior but for LibJS there must always be an active script to call HostImportModuleDynamically.
5 lines
111 B
JavaScript
5 lines
111 B
JavaScript
export const foo = "Well hello shadows";
|
|
|
|
export default "Default export";
|
|
|
|
export const bar = "'bar' export";
|