mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-12 22:10:01 -04:00
reorder params
This commit is contained in:
parent
3da0e1d816
commit
fbeaf15283
2 changed files with 4 additions and 5 deletions
|
@ -25,7 +25,7 @@ Error.stackTraceLimit = 50;
|
|||
const decoder = new TextDecoder();
|
||||
|
||||
function rewriteJsWasm(
|
||||
input: string | ArrayBuffer,
|
||||
input: string | Uint8Array,
|
||||
source: string | null,
|
||||
meta: URLMeta,
|
||||
module: boolean
|
||||
|
@ -41,16 +41,16 @@ function rewriteJsWasm(
|
|||
out = rewrite_js(
|
||||
input,
|
||||
meta.base.href,
|
||||
module,
|
||||
source || "(unknown)",
|
||||
module,
|
||||
$scramjet
|
||||
);
|
||||
} else {
|
||||
out = rewrite_js_from_arraybuffer(
|
||||
new Uint8Array(input),
|
||||
input,
|
||||
meta.base.href,
|
||||
module,
|
||||
source || "(unknown)",
|
||||
module,
|
||||
$scramjet
|
||||
);
|
||||
}
|
||||
|
|
|
@ -366,7 +366,6 @@ async function rewriteBody(
|
|||
workertype === "module"
|
||||
);
|
||||
if (flagEnabled("sourcemaps", meta.base) && map) {
|
||||
console.log(js);
|
||||
js =
|
||||
`${globalThis.$scramjet.config.globals.pushsourcemapfn}([${map.join(",")}], "${tag}");` +
|
||||
(js instanceof Uint8Array ? new TextDecoder().decode(js) : js);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue