mirror of
https://github.com/hanzoai/quickjs-emscripten.git
synced 2026-10-30 19:37:29 +00:00
* working wrangler demo * improve worker example code quality * add helpers for cloudflare support * document cloudflare, deno, esmodule * deno smoketest file * doc cleanup * expand loader docs * test minimal example in CI * rebuild docs * document minimal size
14 lines
474 B
JavaScript
14 lines
474 B
JavaScript
/* eslint-disable no-undef */
|
|
quickjsEmscriptenInit.inits.push((extension) => {
|
|
if (typeof receiveSourceMapJSON !== "undefined") {
|
|
extension["receiveSourceMapJSON"] = (data) => {
|
|
if (typeof wasmSourceMap === "undefined") {
|
|
extension.log("receiveSourceMapJSON: received", data)
|
|
return receiveSourceMapJSON(data)
|
|
} else {
|
|
extension.log("receiveSourceMapJSON: already have data:", wasmSourceMap, "ignoring", data)
|
|
}
|
|
}
|
|
}
|
|
})
|