@threadedstack/wmd-web 0.1.43 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/RELEASE.json +7 -6
- package/package.json +3 -3
- package/src/edge/pins.gen.js +1 -1
- package/src/edge/sbx/gate.js +22 -5
- package/src/edge/setup.js +2 -2
- package/src/gowasm/boot-setup.js +10 -2
- package/wmdpack.wasm +0 -0
package/README.md
CHANGED
|
@@ -3022,6 +3022,6 @@ attributes the guest has seen across a cache drop (the page's `ck.dropNames()`),
|
|
|
3022
3022
|
|
|
3023
3023
|
## The Go compiler's Wasm twin (X6; off until a base url is set)
|
|
3024
3024
|
|
|
3025
|
-
An embedder does nothing to get the twin: update the package and call `containerBundle` and `bootWmd` as before, with no line of twin code. `bootWmd` reads the pins (`src/gowasm/pins-data.js`, a JS module that ships in the package, no request), adds the stub mounts to the bundle's spec and sets the service's `gowasm` field from it; the image decides (an image with no Go compile, or a Go release with no pin, runs as before and downloads nothing). The twin's module (41 to 53 MB per Go release) is fetched by the twin's Worker on first use from an ordered list of sources (`GOWASM_SOURCES_DEFAULT` in `src/gowasm/setup.js`: the npm registry, then jsDelivr, then unpkg; `gowasm: false` turns the twin off): the first that gives the pinned sha256 and size wins, a source that fails, stalls, is too big, refuses the file or has a wrong hash is left for the next (jsDelivr refuses files over 50 MB, so for the largest twin the working sources are the registry tarball and unpkg: each release needs only one source that works), and when all fail the guest compiles, with one `gowasm-off` event that names each source. Source kinds: `{ kind: 'tgz', url }` (an npm registry tarball) and `{ kind: 'file', base }` (`<base>/<file>`); only the pins name the package. The module is kept in Cache Storage of the page's origin under a key that holds its hash (checked again at each boot). What a consumer may pass to `bootWmd`: `gowasm: false` (off), `gowasm: { sources: [...] }`, `gowasm: { base: 'https://.../gowasm' }` (the override for an app that serves its own copy of the files `compile-<go release>.wasm`), `gowasm: { limits }`. An app with no Content-Security-Policy has nothing to do. An app with a policy that has `connect-src` adds one origin, `https://registry.npmjs.org` (the first source; jsDelivr and unpkg are only fallbacks, so they need not be listed), or names a source of its own that the policy allows with `gowasm: { sources: [...] }`. A source the policy blocks is left for the next one without a request, and when all are blocked the guest compiles and the `gowasm-off` event says what blocked each (the directive and the origin to add; in Playwright's WebKit the page gets no violation event from the twin's Worker, so the reason is the browser's own text with a hint naming `connect-src`); knowing that all three are blocked took 21 to 25 ms in Chromium and 22 to 28 ms in Firefox (counted once, under shared load). Test page words: `gowasm=1`, `gowasm=auto` (only a table the page states by `gowasmtools=<url>` or `<meta name="wmd-gowasm-table" content="<url>">`), `gowasmbase=<url>`. A checkpoint keeps the twin choice it was taken with (a checkpoint taken with the twin always restores: with `gowasm: false` the stub mounts stay, no twin Worker starts, every compile runs in the guest, one `gowasm-off` event, rule `checkpoint-twin`; one taken without it restores without it). Headers, limits, the cache, the checkpoint rule and the images that carry a listed compile: `docs/gowasm-twin.md`.
|
|
3025
|
+
An embedder does nothing to get the twin: update the package and call `containerBundle` and `bootWmd` as before, with no line of twin code. `bootWmd` reads the pins (`src/gowasm/pins-data.js`, a JS module that ships in the package, no request), adds the stub mounts to the bundle's spec and sets the service's `gowasm` field from it; the image decides (an image with no Go compile, or a Go release with no pin, runs as before and downloads nothing). The twin's module (41 to 53 MB per Go release) is fetched by the twin's Worker on first use from an ordered list of sources (`GOWASM_SOURCES_DEFAULT` in `src/gowasm/setup.js`: the npm registry, then jsDelivr, then unpkg; `gowasm: false` turns the twin off): the first that gives the pinned sha256 and size wins, a source that fails, stalls, is too big, refuses the file or has a wrong hash is left for the next (jsDelivr refuses files over 50 MB, so for the largest twin the working sources are the registry tarball and unpkg: each release needs only one source that works), and when all fail the guest compiles, with one `gowasm-off` event that names each source. Source kinds: `{ kind: 'tgz', url }` (an npm registry tarball) and `{ kind: 'file', base }` (`<base>/<file>`); only the pins name the package. The module is kept in Cache Storage of the page's origin under a key that holds its hash (checked again at each boot). In WebKit (Safari, and every browser on iOS) the twin is off by default: an embedder's machine never came up there with the twin's Worker (#86); `gowasm: { webkit: true }` turns it on. What a consumer may pass to `bootWmd`: `gowasm: false` (off), `gowasm: { webkit: true }` (on in WebKit too), `gowasm: { sources: [...] }`, `gowasm: { base: 'https://.../gowasm' }` (the override for an app that serves its own copy of the files `compile-<go release>.wasm`), `gowasm: { limits }`. An app with no Content-Security-Policy has nothing to do. An app with a policy that has `connect-src` adds one origin, `https://registry.npmjs.org` (the first source; jsDelivr and unpkg are only fallbacks, so they need not be listed), or names a source of its own that the policy allows with `gowasm: { sources: [...] }`. A source the policy blocks is left for the next one without a request, and when all are blocked the guest compiles and the `gowasm-off` event says what blocked each (the directive and the origin to add; in Playwright's WebKit the page gets no violation event from the twin's Worker, so the reason is the browser's own text with a hint naming `connect-src`); knowing that all three are blocked took 21 to 25 ms in Chromium and 22 to 28 ms in Firefox (counted once, under shared load). Test page words: `gowasm=1`, `gowasm=auto` (only a table the page states by `gowasmtools=<url>` or `<meta name="wmd-gowasm-table" content="<url>">`), `gowasmbase=<url>`. A checkpoint keeps the twin choice it was taken with (a checkpoint taken with the twin always restores: with `gowasm: false` the stub mounts stay, no twin Worker starts, every compile runs in the guest, one `gowasm-off` event, rule `checkpoint-twin`; one taken without it restores without it). Headers, limits, the cache, the checkpoint rule and the images that carry a listed compile: `docs/gowasm-twin.md`.
|
|
3026
3026
|
|
|
3027
3027
|
Off is off: with `gowasm: false` (or no twin source and no table) there is no twin file requested, no twin Worker started, no stub mount in the container (the guest's `/proc/mounts` has none), and no event. What the page does load is four small library modules that main's page does not, because the checkpoint rule needs the twin's spec text even when the twin is off: `src/gowasm/boot-setup.js`, `src/gowasm/setup.js`, `src/gowasm/pins-data.js` and `src/host/gowasm-guard.js`, 4 requests and 39,808 bytes uncompressed (counted once in Chromium against a copy of `origin/main`'s `web/`: 228 requests against 225, 65 distinct paths against 61; `web/test/x6/fix10-count.spec.js`). Nothing else differs in what the page asks for.
|
package/RELEASE.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wmd-web",
|
|
3
3
|
"version": "0.5.1",
|
|
4
|
-
"commit": "
|
|
4
|
+
"commit": "5d975e60b2751b4ddfc5f654e6720b5801596072",
|
|
5
5
|
"previous": null,
|
|
6
6
|
"decisions": [
|
|
7
7
|
"D-388",
|
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
"D-658",
|
|
78
78
|
"D-659",
|
|
79
79
|
"D-660",
|
|
80
|
-
"D-661"
|
|
80
|
+
"D-661",
|
|
81
|
+
"D-666"
|
|
81
82
|
],
|
|
82
83
|
"vmSources": "3ac7f939f52426df0f781492d3ebf09069e84d44",
|
|
83
84
|
"guest": {
|
|
@@ -155,7 +156,7 @@
|
|
|
155
156
|
}
|
|
156
157
|
},
|
|
157
158
|
"files": {
|
|
158
|
-
"README.md": "
|
|
159
|
+
"README.md": "96b5f947ded2b5520d6a34832526d7f1d409c2bfcb760fb2625051288c3b34ec",
|
|
159
160
|
"edge-site/own/HASHES.txt": "4d83edcb41399bb89eb7b1f89115886d739adac887bdde59a8d33e3a4602683a",
|
|
160
161
|
"edge-site/own/NOTICES.txt": "8ceca5406ee5833737bd5fa4a41d434bf5e4d26eff6da1e42c693176ee113101",
|
|
161
162
|
"edge-site/own/acorn/LICENSE": "76a876cf886ff9be2a8b5e2e86514fed06223c8c9f0c1e9ee9606e93841e00b7",
|
|
@@ -243,7 +244,7 @@
|
|
|
243
244
|
"src/edge/sbx/doc.js": "0b3877068550015c351240195a5487e9492d0a81a3431486e8d874c7cda11d0e",
|
|
244
245
|
"src/edge/sbx/files.js": "511c0ac6028b0d15d8295c2680614d4b61e3d2139deb66a7cc76812db809a00a",
|
|
245
246
|
"src/edge/sbx/frame.js": "6d291b6bc224d871600a3abd1c1ff9ae73c8e34947a98936e65fe2a9223cdcc2",
|
|
246
|
-
"src/edge/sbx/gate.js": "
|
|
247
|
+
"src/edge/sbx/gate.js": "4f95c5fbb9339338cc0e95070efece42c3d303076e8741cec91cfefc797c8245",
|
|
247
248
|
"src/edge/sbx/sha256.js": "da1d3ebcaafcc07e206431d42cce8c146ac9b633b0de21286e35e6608dfe4770",
|
|
248
249
|
"src/edge/sbx/worker-entry.js": "e10a9aea83e5bde77cd6ca4a4b7ad0e708f947236694b318f2f4834626dd648f",
|
|
249
250
|
"src/edge/sdk/adapter.js": "0b21d32da468739054e7be86e50dd290d14da7be732b288c2b7764b0f2e0cfff",
|
|
@@ -253,7 +254,7 @@
|
|
|
253
254
|
"src/edge/sems.js": "f5bd680e67b7ec3eeb16b2f7ac9207b16491001400b435ff5ee3a34f050d8ceb",
|
|
254
255
|
"src/edge/service-host.js": "f77664be9e3a0cc1cc9b283c5aeda7d94c7a9d61b8cecda5b90822295d315df6",
|
|
255
256
|
"src/edge/service-port.js": "6daff74e083d8d6e4d3ce950004bafb8632e78c9fbf626197a2c18453ac96eeb",
|
|
256
|
-
"src/edge/setup.js": "
|
|
257
|
+
"src/edge/setup.js": "d91b73825ef6bf12c8abdef6e96dc3afe9b7e665d5a42a0fbdf00485fa278957",
|
|
257
258
|
"src/edge/shim.js": "25efa4dddd3bbdd4a2967d99116e10c011a41aa0a4bdd7ce670fbf6d01735a76",
|
|
258
259
|
"src/edge/site.js": "ff63be7c751678b773fd03e79e551e6fe6e85caa0444b6413b7bb940b8316979",
|
|
259
260
|
"src/edge/spawn-guard.js": "666cc6cca0628f3c07093f08da277a1d6291eebb91c19abebf0d422f6197e401",
|
|
@@ -271,7 +272,7 @@
|
|
|
271
272
|
"src/fs/seed.js": "1cd2765e5d28e961bc4e81b41898f768a63e24feaf44e0aa42bd23e5cb910a74",
|
|
272
273
|
"src/fs/svc-snapshot.js": "eae82a6e136f9430680197c617601028da35cbe8786df39d6cab28280a2f9a7c",
|
|
273
274
|
"src/fs/upper-pack.js": "737a7e2bb5aac0ff774645db5789d699adfff263ca6f979e6687a9183a47f9dc",
|
|
274
|
-
"src/gowasm/boot-setup.js": "
|
|
275
|
+
"src/gowasm/boot-setup.js": "5191fae1990725bee70083c8eac8cbda3e276108debc52f11bd5d87e77c0a102",
|
|
275
276
|
"src/gowasm/fetch-twin.mjs": "de7c5f29c069dc3b009964b8b96084d567ef15d641238b1122a0d7f2c473f799",
|
|
276
277
|
"src/gowasm/make-pins-module.mjs": "d13db3b38fdfe37e4db66f3b7d0433df15d590260433b295e2654af12feacd75",
|
|
277
278
|
"src/gowasm/pins-data.js": "71fc2e21e2363de883823bccea5bb9ca3c46077e6fab56a04cfa511739563e19",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threadedstack/wmd-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.45",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/threadedstack/wmd-releases",
|
|
6
6
|
"repository": {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"description": "Browser host for wmd's guest vm.wasm (Web Workers + shared memory + WASI preview1)",
|
|
11
11
|
"wmd": {
|
|
12
|
-
"tag": "v0.1.
|
|
13
|
-
"commit": "
|
|
12
|
+
"tag": "v0.1.45",
|
|
13
|
+
"commit": "5d975e60b2751b4ddfc5f654e6720b5801596072",
|
|
14
14
|
"web": "0.5.1"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
package/src/edge/pins.gen.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// The files of node in the sandboxed frame: the path under a source (the option edge: { sources } of bootWmd), the role the frame gives the file, its
|
|
3
3
|
// sha256 and its size. The page accepts a file only when it has exactly this sha256 and size. The notice files travel with the rest.
|
|
4
4
|
// EDGE_PACKAGE is the package that holds these files, for the {name} {version} {file} of a registry source's url (null: none named).
|
|
5
|
-
export const EDGE_PACKAGE = { name: '@threadedstack/wmd-node', version: '0.1.
|
|
5
|
+
export const EDGE_PACKAGE = { name: '@threadedstack/wmd-node', version: '0.1.45' }
|
|
6
6
|
export const EDGE_PINS = [
|
|
7
7
|
{ path: 'wmd_browser_bg.wasm', role: 'wasm', sha256: '1e3db7f2c5f4be0ee44e5f2c0205cf8ca11f906d9addd5512915fad4821661c2', size: 6334959 },
|
|
8
8
|
{ path: 'wmd_browser.js', role: 'glue', sha256: 'b389b072096881ba39b22cd705d3a230af02acc5409c61fb4f997d1081c4df6f', size: 75647 },
|
package/src/edge/sbx/gate.js
CHANGED
|
@@ -18,6 +18,13 @@ import { SITE_RETRY_MS } from '../site.js'
|
|
|
18
18
|
* guest at once until the files are in.
|
|
19
19
|
*/
|
|
20
20
|
export const FILES_WAIT_MS = 2500
|
|
21
|
+
/**
|
|
22
|
+
* PYDEF-1: the wait above is the STALL window, not the whole bound. A start whose files are not in keeps waiting while the download makes progress (bytes
|
|
23
|
+
* arrived within the last waitMs) and goes to the guest when none arrived for waitMs (a stalled or dead source) or after FILES_MAX_MS in all. On the default
|
|
24
|
+
* sources a cold browser had node's 65 MB in 6.4 s, so the first start of a cold browser (an `npm ci` of 7 s in the frame, 39 s in the guest) used to go to
|
|
25
|
+
* the guest at 2.5 s; with progress it waits for the files and runs in the frame. A start never waits for a download that makes no progress.
|
|
26
|
+
*/
|
|
27
|
+
export const FILES_MAX_MS = 30000
|
|
21
28
|
/** The reason of a start that went to the guest because the files were not there yet. */
|
|
22
29
|
export const FILES_STILL = "node's files are still loading"
|
|
23
30
|
/** At most one progress event in this many ms ("a few per second"). */
|
|
@@ -29,7 +36,7 @@ const text = r => {
|
|
|
29
36
|
return per || String(r.error || 'no source gave the files')
|
|
30
37
|
}
|
|
31
38
|
|
|
32
|
-
export function filesGate({ get, waitMs = FILES_WAIT_MS, retryMs = SITE_RETRY_MS, progressMs = FILES_PROGRESS_MS, onEvent = () => {}, now = () => Date.now(), setTimer = setTimeout, clearTimer = clearTimeout }) {
|
|
39
|
+
export function filesGate({ get, waitMs = FILES_WAIT_MS, maxMs = FILES_MAX_MS, retryMs = SITE_RETRY_MS, progressMs = FILES_PROGRESS_MS, onEvent = () => {}, now = () => Date.now(), setTimer = setTimeout, clearTimer = clearTimeout }) {
|
|
33
40
|
let state = 'idle' // idle | loading | ready | failed
|
|
34
41
|
let p = null
|
|
35
42
|
let t0 = 0
|
|
@@ -41,7 +48,9 @@ export function filesGate({ get, waitMs = FILES_WAIT_MS, retryMs = SITE_RETRY_MS
|
|
|
41
48
|
let base = 0
|
|
42
49
|
let last = 0
|
|
43
50
|
let sentAt = -Infinity
|
|
51
|
+
let progressAt = 0 // when bytes last arrived (or the download began): a start waits while this is within waitMs
|
|
44
52
|
const onProgress = got => {
|
|
53
|
+
progressAt = now()
|
|
45
54
|
if (got < last) base += last
|
|
46
55
|
last = got
|
|
47
56
|
const t = now()
|
|
@@ -76,7 +85,7 @@ export function filesGate({ get, waitMs = FILES_WAIT_MS, retryMs = SITE_RETRY_MS
|
|
|
76
85
|
.catch(e => ({ error: String((e && e.message) || e).split('\n')[0], reasons: [] }))
|
|
77
86
|
}
|
|
78
87
|
state = 'loading'
|
|
79
|
-
t0 = now()
|
|
88
|
+
t0 = progressAt = now()
|
|
80
89
|
late = false
|
|
81
90
|
base = last = 0
|
|
82
91
|
sentAt = -Infinity
|
|
@@ -101,10 +110,18 @@ export function filesGate({ get, waitMs = FILES_WAIT_MS, retryMs = SITE_RETRY_MS
|
|
|
101
110
|
}
|
|
102
111
|
const mine = begin()
|
|
103
112
|
if (late && state !== 'ready') return guest(FILES_STILL)
|
|
104
|
-
let timer
|
|
105
113
|
const never = Symbol('bound')
|
|
106
|
-
const
|
|
107
|
-
|
|
114
|
+
const startedAt = now()
|
|
115
|
+
let r = never
|
|
116
|
+
for (;;) {
|
|
117
|
+
// wait until the files are in, the download stalled (no bytes for waitMs) or the whole bound is used
|
|
118
|
+
const left = Math.min(progressAt + waitMs - now(), startedAt + maxMs - now())
|
|
119
|
+
if (left <= 0) break
|
|
120
|
+
let timer
|
|
121
|
+
r = await Promise.race([mine, new Promise(res => (timer = setTimer(() => res(never), left)))])
|
|
122
|
+
clearTimer(timer)
|
|
123
|
+
if (r !== never) break
|
|
124
|
+
}
|
|
108
125
|
if (r === never) {
|
|
109
126
|
if (state !== 'ready') late = true
|
|
110
127
|
return guest(FILES_STILL)
|
package/src/edge/setup.js
CHANGED
|
@@ -167,10 +167,10 @@ export function edgeSetupIn(o, counts) {
|
|
|
167
167
|
const pyGate = !sandbox || !pyPlan.use
|
|
168
168
|
? null
|
|
169
169
|
: filesGate({
|
|
170
|
-
get:
|
|
170
|
+
get: onProgress =>
|
|
171
171
|
fetchPythonOpt
|
|
172
172
|
? Promise.resolve().then(fetchPythonOpt)
|
|
173
|
-
: import('./python-source.js').then(m => m.fetchPythonModule(pyPlan.version)).then(r => (r.error ? r : { files: { python: r.bytes }, source: r.source, reasons: r.reasons })),
|
|
173
|
+
: import('./python-source.js').then(m => m.fetchPythonModule(pyPlan.version, { onProgress })).then(r => (r.error ? r : { files: { python: r.bytes }, source: r.source, reasons: r.reasons })),
|
|
174
174
|
onEvent: e => onLog(0, { ...e, python: true }),
|
|
175
175
|
...(filesWaitMs !== undefined ? { waitMs: filesWaitMs } : {}),
|
|
176
176
|
...(filesRetryMs !== undefined ? { retryMs: filesRetryMs } : {}),
|
package/src/gowasm/boot-setup.js
CHANGED
|
@@ -22,10 +22,16 @@
|
|
|
22
22
|
// 'checkpoint-twin'. A header with no boot description, or whose spec text is neither, changes nothing.
|
|
23
23
|
import { addEdgeToolMounts } from '../host/ctl.js'
|
|
24
24
|
import { bootKeyForChoice, sampleKey, specChoice } from '../host/ckpt.js'
|
|
25
|
+
import { engineOf } from '../edge/sbx/cap.js'
|
|
25
26
|
import { GOWASM_SOURCES_DEFAULT, planOf } from './setup.js'
|
|
26
27
|
|
|
27
28
|
export { GOWASM_SOURCES_DEFAULT }
|
|
28
29
|
const CONFIG = 'bundle/config/config.json'
|
|
30
|
+
/**
|
|
31
|
+
* The engines the twin is off in by default (threadedstack/wmd#86): in WebKit an embedder's machine (wmr) never came up with the twin's Worker
|
|
32
|
+
* (3 of 3 failed since v0.1.40) and came up in 53 s without it; Chromium and Firefox are fine. A page that wants it there says `gowasm: { webkit: true }`.
|
|
33
|
+
*/
|
|
34
|
+
export const GOWASM_ENGINES_OFF = { webkit: 'the twin is off in WebKit by default (gowasm: { webkit: true } turns it on)' }
|
|
29
35
|
// the spec text does not depend on the sources, so a boot that does not use the twin still makes the text a checkpoint with the twin would hold
|
|
30
36
|
const TEXT_ONLY = [{ kind: 'file', base: 'https://twin.invalid/' }]
|
|
31
37
|
const textOf = raw => {
|
|
@@ -50,9 +56,10 @@ export async function twinForBoot(o) {
|
|
|
50
56
|
const services = o && o.channels && Array.isArray(o.channels.services) ? o.channels.services : []
|
|
51
57
|
const mine = services.map((s, i) => [s, i]).filter(([s]) => s && (s.kind === '9p' || s.kind === 1) && s.files && typeof s.files === 'object' && !s.gowasm && s.files[CONFIG] !== undefined)
|
|
52
58
|
if (!mine.length) return res(o)
|
|
53
|
-
const
|
|
59
|
+
const engineWhy = opt === false || given.webkit === true ? '' : GOWASM_ENGINES_OFF[engineOf(globalThis.navigator?.userAgent || '')] || ''
|
|
60
|
+
const consumerOff = opt === false || !sources || !!engineWhy
|
|
54
61
|
const plan = planOf({ sources: consumerOff ? TEXT_ONLY : sources, pins: given.pins, packages: given.packages, limits: given.limits || {} })
|
|
55
|
-
const consumerWhy = opt === false ? 'gowasm: false' : 'no source'
|
|
62
|
+
const consumerWhy = opt === false ? 'gowasm: false' : engineWhy || 'no source'
|
|
56
63
|
// the text of the spec with the stub mounts is decided by the tools alone, not by the sources or the limits: when this boot does not use the twin (the consumer's
|
|
57
64
|
// choice, or a setup that is not usable) it is made from the caller's pins and, when those are not usable, from the package's own, so a checkpoint taken with
|
|
58
65
|
// the twin can still be told apart and restored (part 6)
|
|
@@ -93,6 +100,7 @@ export async function twinForBoot(o) {
|
|
|
93
100
|
const built = build(plan, f => f)
|
|
94
101
|
if (built.bad) return consumerOff ? goOff(consumerWhy, false) : (events.push({ t: 'gowasm-off', why: built.bad }), res(o, { off: built.bad }))
|
|
95
102
|
if (consumerOff) {
|
|
103
|
+
if (engineWhy) return res(o, { texts: built.texts, off: engineWhy, offO: offOf(engineWhy, built) })
|
|
96
104
|
if (opt === undefined) return res(o, { texts: built.texts, off: 'no source', offO: offOf('no source', built) })
|
|
97
105
|
if (opt === false) return res(o, { texts: built.texts, off: 'gowasm: false', offO: offOf('gowasm: false', built) })
|
|
98
106
|
events.push({ t: 'gowasm-off', why: 'no source of the twin is named: no sources and no default, so none is asked for' })
|
package/wmdpack.wasm
CHANGED
|
Binary file
|