mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 14:00:01 -04:00
fix workers
This commit is contained in:
parent
0939dd2b57
commit
5f7a9d4bd4
5 changed files with 14 additions and 11 deletions
|
@ -7,7 +7,6 @@ import {
|
|||
rewrite_js,
|
||||
rewrite_js_from_arraybuffer,
|
||||
} from "../../../rewriter/out/rewriter.js";
|
||||
import { config } from "../../shared";
|
||||
|
||||
initSync(
|
||||
new WebAssembly.Module(
|
||||
|
@ -58,7 +57,7 @@ export function rewriteJsNaiive(js: string | ArrayBuffer, origin?: URL) {
|
|||
}
|
||||
|
||||
return `
|
||||
with (${config.wrapfn}(globalThis)) {
|
||||
with (${self.$scramjet.config.wrapfn}(globalThis)) {
|
||||
|
||||
${js}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue