We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68a1519 + 423bebb commit 78db35dCopy full SHA for 78db35d
crates/cli-support/src/js/mod.rs
@@ -502,7 +502,7 @@ impl<'a> Context<'a> {
502
let result;
503
const imports = {{}};
504
{imports_init}
505
- if (module instanceof URL || typeof module === 'string' || module instanceof Request) {{
+ if ((typeof URL === 'function' && module instanceof URL) || typeof module === 'string' || (typeof Request === 'function' && module instanceof Request)) {{
506
{init_memory2}
507
const response = fetch(module);
508
if (typeof WebAssembly.instantiateStreaming === 'function') {{
0 commit comments