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