ladybird/Userland/Libraries/LibJS/Tests/builtins/ShadowRealm/external-module.mjs
davidot 986ad3ccf0 LibJS: Use HostImportModuleDynamically in ShadowRealmImportValue
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.
2022-01-22 01:21:18 +00:00

5 lines
111 B
JavaScript

export const foo = "Well hello shadows";
export default "Default export";
export const bar = "'bar' export";