provident-storeroom 2.0.0 → 2.1.0
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.guide.md +21 -12
- package/README.md +5 -2
- package/RELEASE-NOTES.md +142 -1
- package/index.d.ts +61 -1
- package/package.json +6 -6
- package/src/entry/addon-slot.mjs +47 -11
package/README.guide.md
CHANGED
|
@@ -30,7 +30,7 @@ preflight REFUSES when these two lines do not read what it computed** (`scripts/
|
|
|
30
30
|
one check, read-only). **THE TWO LINES ARE THIS GUIDE'S OPERATIVE FIGURES; every dated paragraph below is the
|
|
31
31
|
reading of its own date and is read through them.**
|
|
32
32
|
|
|
33
|
-
PUBLISH-GUIDE-VERSION-LINE: THE VERSION THIS GUIDE DESCRIBES IS `2.
|
|
33
|
+
PUBLISH-GUIDE-VERSION-LINE: THE VERSION THIS GUIDE DESCRIBES IS `2.1.0`.
|
|
34
34
|
PUBLISH-GUIDE-CUT-STATE: NOT STATED -- this document describes the behaviour at the version line above, and the cut-state is the release's to state, not a shipped document's (`D-57`).
|
|
35
35
|
|
|
36
36
|
**⟶ AND THE CUT-STATE SENTENCE ABOVE IS WITHDRAWN, 2026-10-28 — THE CUT-STATE IS NOT A DOCUMENT'S TO STATE.** `RCA-8(g)` ANNOTATE-BESIDE, and the architect's ruling verbatim (`strata/decisions.md` · `D-57`): *"Drop the cut-state."* **The two marked lines above stand BYTE-FOR-BYTE as the reading of their own date and are read THROUGH this clause — not one byte of either is deleted — and the sentence this clause withdraws is the SECOND of them, the one that claims to say whether the release this guide travels in is cut.** **THE REASON IS MEASURED, THREE TIMES OVER, AND IT IS STRUCTURAL RATHER THAN A MISTAKE: A SHIPPED DOCUMENT IS SEALED BEFORE THE TAG THAT MAKES ITS CUT-STATE TRUE**, so every release packed before its tag ships a document denying itself, and a guard running in that release's own preflight can only ever confirm *"not cut"* — `1.2.0` shipped *"NOT CUT"*, `1.3.0` shipped *"`v1.3.0` DOES NOT EXIST"*, and the change list's head was stale within minutes of the tag that falsified it. **SO THE CUT-STATE SENTENCE IS DROPPED AS A CLAIM AND THE VERSION LINE STAYS**, because the version line is the ONE figure a tarball can be right about: the manifest knows it and travels beside it. **`scripts/publish.sh --figures` GENERATES AND ASSERTS THE VERSION LINE AND NOTHING ELSE** — the cut-state generation and its assertion are removed in the same act, so a tag set that moves can no longer redden this guide — **and the same one line is asserted in THREE shipped documents: this guide, `README.md` beside it, and the change list** (`DEF-AC`'s remaining demand, *"guard the release notes too"* and *"`README.md` still declares no version at all"*). **THE TAG SET IS NOT DELETED AND NOT DENIED: it is a RECORD OF RELEASES held in the change list, PAST TENSE — a list of what has been cut — and never a claim about the current one.** **AND WHAT THIS CLAUSE DOES NOT SAY, SAID PLAINLY BECAUSE A READER WILL LOOK FOR IT: it does not say whether the version this guide prints is cut.** That is not a document's to state; the record of what has been cut is in `RELEASE-NOTES.md`, and the registry is the registry.
|
|
@@ -160,8 +160,9 @@ own readme enumerates them one by one and describes no other realm as supported.
|
|
|
160
160
|
**`@auspicion/provident-storeroom-js-wasm` is this same store on a WebAssembly host**, and it differs from the
|
|
161
161
|
package this guide documents in three ways a consumer meets at once:
|
|
162
162
|
|
|
163
|
-
* **THE BINDINGS ARE HANDED IN, NOT LOOKED FOR.** `
|
|
164
|
-
|
|
163
|
+
* **THE BINDINGS ARE HANDED IN, NOT LOOKED FOR.** The arm's own `initSync(bytesOrModule)` performs the synchronous
|
|
164
|
+
initialization of the module **the host supplies** and answers the glue namespace; `storeCreate(bindings, cfg)`
|
|
165
|
+
takes that namespace as its first position. The package fetches nothing, loads no addon and reaches no filesystem.
|
|
165
166
|
* **THERE IS NO `filePath`.** The key is not in domain on that arm, a construction that carries it is refused at the
|
|
166
167
|
`cfg` gate, and the **`file` tier means *durable with no path***: the store keeps its durability against a
|
|
167
168
|
caller's function (`saveCall`), and a save it cannot confirm is a save it does not claim.
|
|
@@ -2580,12 +2581,17 @@ same code, **and what differs is how the bindings arrive and what the `file` tie
|
|
|
2580
2581
|
### §13.1 What it is, and how you construct one
|
|
2581
2582
|
|
|
2582
2583
|
**THE BINDINGS ARE HANDED IN AND NEVER LOOKED FOR.** The Node build resolves a `.node` artefact down three rungs
|
|
2583
|
-
(§2.3); **this one
|
|
2584
|
-
|
|
2584
|
+
(§2.3); **this one loads no addon and reaches no filesystem, and it exposes its own bindings step so you never name the
|
|
2585
|
+
glue file**: **the HOST supplies the package's own `storeroom_js_binding_bg.wasm` bytes or a compiled
|
|
2586
|
+
`WebAssembly.Module`, the arm's own `initSync` performs the synchronous initialization, and `storeCreate` takes the
|
|
2587
|
+
namespace it answers at its first position.** **THE FACTORY TAKES TWO POSITIONS — `storeCreate(bindings, cfg)`:**
|
|
2585
2588
|
|
|
2586
2589
|
```js
|
|
2587
|
-
|
|
2588
|
-
|
|
2590
|
+
import { initSync, storeCreate } from '@auspicion/provident-storeroom-js-wasm';
|
|
2591
|
+
|
|
2592
|
+
// the HOST supplies the bytes or the compiled module; the package's own initSync initializes it and answers the
|
|
2593
|
+
// bindings — the glue namespace, not the raw wasm exports.
|
|
2594
|
+
const bindings = initSync(bytesOrModule);
|
|
2589
2595
|
const store = storeCreate(bindings, {
|
|
2590
2596
|
journalLength: 256, // REQUIRED, as on the Node build
|
|
2591
2597
|
listeners: [], // REQUIRED, even when empty
|
|
@@ -2594,11 +2600,14 @@ const store = storeCreate(bindings, {
|
|
|
2594
2600
|
});
|
|
2595
2601
|
```
|
|
2596
2602
|
|
|
2597
|
-
**A FIRST POSITION THAT IS NOT THE
|
|
2598
|
-
primitive, a function,
|
|
2599
|
-
`TypeError` whose `status` member is ABSENT**, because **no store
|
|
2600
|
-
(`D-157` item 3; `bindings/js/src/entry/addon-slot.mjs`'s
|
|
2601
|
-
|
|
2603
|
+
**A FIRST POSITION THAT IS NOT THE BINDINGS IS REFUSED BEFORE ANY BYTE OF YOUR `cfg` IS READ** — `null`, `undefined`, a
|
|
2604
|
+
primitive, a function, an object carrying no callable `storeCreate` and no callable `initSync`, **and the raw `initSync` output the
|
|
2605
|
+
glue returns** — **in the package's own class form: a `TypeError` whose `status` member is ABSENT**, because **no store
|
|
2606
|
+
exists at that instant — no instance, no verb, no op** (`D-157` item 3; `bindings/js/src/entry/addon-slot.mjs`'s
|
|
2607
|
+
`installAddon`). **THE RAW `initSync` OUTPUT IS NOT THE BINDINGS**: it is the wasm exports object, its verbs answer raw
|
|
2608
|
+
triples, and a construction handed it is refused **at construction and by name**, not at the first verb (`D-206`).
|
|
2609
|
+
**The slot is left empty by the refusal**, so every later call answers the same form rather than a half-installed
|
|
2610
|
+
table.
|
|
2602
2611
|
|
|
2603
2612
|
**`saveCall` AND `initialImage` ARE `cfg` KEYS ON BOTH ARMS** — they joined the four the construction already carried
|
|
2604
2613
|
(`D-131`; `D-137`) — **and on this arm they are the whole of durability.** **THE ENTRY'S OWN LOAD-TIME GRAPH STAYS
|
package/README.md
CHANGED
|
@@ -13,7 +13,10 @@ supported.**
|
|
|
13
13
|
architect's *"Lift the realm claim restriction and plan for the change"*; `D-157` item 1). **`@auspicion/provident-storeroom-js-wasm`
|
|
14
14
|
carries the same store on a WebAssembly host**, its bindings handed in instead of looked for: no Node-API addon, no
|
|
15
15
|
`filePath` (the key is not in domain there — a browser cannot write one), the `file` tier meaning *durable with no
|
|
16
|
-
path*, saved through a caller's `saveCall` and seeded through an `initialImage`. **
|
|
16
|
+
path*, saved through a caller's `saveCall` and seeded through an `initialImage`. **ITS ENTRY EXPOSES THE BINDINGS STEP —
|
|
17
|
+
`initSync(bytesOrModule)` initializes the host's module and answers the glue namespace `storeCreate(bindings, cfg)` takes
|
|
18
|
+
at its first position** (`D-206`; FR-1) — **and the raw wasm exports object the glue's own `initSync` returns is refused
|
|
19
|
+
by name at construction, never at the first verb.** **IT IS A SECOND PACKAGE AND NOT A
|
|
17
20
|
SECOND ARM OF THIS ONE, AND NOTHING ABOVE MOVES FOR IT**: this package's realm claim, its one `exports` arm, its one
|
|
18
21
|
module name and its `require` condition stand byte-for-byte. **AND THE SENTENCE THIS PARAGRAPH SITS UNDER REMAINS
|
|
19
22
|
TRUE OF THIS PACKAGE**: what ships here reaches Node ESM and nothing else.
|
|
@@ -50,7 +53,7 @@ an edit belongs.
|
|
|
50
53
|
|
|
51
54
|
**⟶ AND THE ONE FIGURE THIS PAGE CAN BE RIGHT ABOUT IS GENERATED AND ASSERTED, 2026-10-28 — `DEF-AC`'s third part, and `D-57`'s one surviving figure.** `RCA-8(g)` ANNOTATE-BESIDE: **every clause above stands BYTE-FOR-BYTE and is read THROUGH this one; nothing above moves.** **THE DEFECT THIS CLOSES: THIS PAGE DECLARED NO VERSION AT ALL** — a shipped document a consumer reads first, saying nothing about which release it describes — **so `scripts/publish.sh --figures` now GENERATES the line below from `bindings/js/package.json`'s `version` and REFUSES when it disagrees, exactly as it does at the guide's and the change list's own marked lines: three shipped documents, three version lines, one generator, one assertion.** **AND THE CUT-STATE IS NOT STATED HERE, OR ANYWHERE ELSE IN THIS PACKAGE'S DOCUMENTS** (`D-57`, the architect verbatim: *"Drop the cut-state"*): a document is sealed before the tag that would make its cut-state true, so **the cut-state is not a document's to state**; the record of what has been cut is the change list's, and it is past tense. **EVERY OTHER CLAIM OF THIS PAGE STANDS EXACTLY AS IT STOOD.**
|
|
52
55
|
|
|
53
|
-
PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `2.
|
|
56
|
+
PUBLISH-README-VERSION-LINE: THE VERSION THIS README DESCRIBES IS `2.1.0`.
|
|
54
57
|
|
|
55
58
|
## The one entry
|
|
56
59
|
|
package/RELEASE-NOTES.md
CHANGED
|
@@ -16,7 +16,7 @@ claims to be installable.**
|
|
|
16
16
|
|
|
17
17
|
**⟶ AND THE CUT-STATE IS DROPPED FROM THIS FILE, 2026-10-28 — `D-57`, THE ARCHITECT VERBATIM: *"Drop the cut-state."*** `RCA-8(g)` ANNOTATE-BESIDE: **the title line and every dated paragraph of this file stand BYTE-FOR-BYTE as the reading of their own date, THIS clause is the one that reads them, and not one byte is deleted.** **THE REASON IS STRUCTURAL AND IT WAS MEASURED THREE TIMES: A SHIPPED DOCUMENT IS SEALED BEFORE THE TAG THAT MAKES ITS CUT-STATE TRUE**, so every release packed before its tag ships a document denying itself, and a guard running in that release's own preflight can only ever confirm *"not cut"* — `1.2.0` shipped *"NOT CUT"*, `1.3.0` shipped *"`v1.3.0` DOES NOT EXIST"*, and this file's own head was stale within minutes of the tag that falsified it. **SO EVERY SENTENCE BELOW THAT CLAIMS WHETHER SOME VERSION IS OR IS NOT CUT — *"PREPARED — NOT CUT"*, *"no `v1.3.0`"*, *"nothing in this section is cut"*, *"the release is not cut"*, *"what is installed today is still `1.1.0`"*, and each reading printed beside them — IS READ THROUGH THIS CLAUSE: the cut-state is not a document's to state.** **WHAT SURVIVES IS THE ONE FIGURE A SHIPPED DOCUMENT CAN BE RIGHT ABOUT, AND IT IS GENERATED FROM THE MANIFEST AND ASSERTED BY THE PREFLIGHT:**
|
|
18
18
|
|
|
19
|
-
PUBLISH-NOTES-VERSION-LINE: THE VERSION THIS CHANGE LIST DESCRIBES IS `2.
|
|
19
|
+
PUBLISH-NOTES-VERSION-LINE: THE VERSION THIS CHANGE LIST DESCRIBES IS `2.1.0`.
|
|
20
20
|
|
|
21
21
|
**AND THE TAG SET SURVIVES AS A RECORD OF RELEASES — PAST TENSE, A LIST OF WHAT HAS BEEN CUT, NEVER A CLAIM ABOUT THE CURRENT ONE** (the record stands in `§1.4.0` below — the section this file's head called `§main` until it was re-cut to name the version it prepares, 2026-10-28 — beside the section for the tree this file describes). (`D-57`; `DEF-AC` (b) — `scripts/publish.sh --figures` generates that line from `bindings/js/package.json`'s `version` and refuses on any disagreement, in this file, in `bindings/js/README.md` and in the shipped guide: three documents, three version lines, one generator, one assertion.)
|
|
22
22
|
|
|
@@ -55,6 +55,147 @@ the value to assert against, not the crate's own `Cargo.toml` version.
|
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
+
## §2.1.0 · a MINOR — the WebAssembly arm's bindings step: `initSync(input)` answers the glue namespace through the package name, the raw `InitOutput` is refused at construction, and the Node arm moves no byte
|
|
59
|
+
|
|
60
|
+
**THE VERSION IS `2.1.0` AND ITS CLASS IS A MINOR — `D-206`, THE ARCHITECT'S *"Proceed with FR-1 proposed changes as
|
|
61
|
+
2.1.0 version"*.** **THE ARTEFACT THAT MOVES IS `@auspicion/provident-storeroom-js-wasm`, THE SIXTH PACKAGE, BESIDE THE
|
|
62
|
+
MAIN PACKAGE AND ITS FIVE NATIVE SIBLINGS, WHICH MOVE TO THE SAME VERSION AND CHANGE NO BYTE OF THEIR RUNTIME.**
|
|
63
|
+
|
|
64
|
+
**THE FINDING IS `FR-1`, THE DOWNSTREAM HANDOFF OF 2026-11-29.** The wasm arm's factory is
|
|
65
|
+
`storeCreate(bindings, cfg)`, and its first position is the **glue module's namespace** — the object carrying the
|
|
66
|
+
value-taking wrappers `read`, `write`, `listen`, and the rest. The package published no function that produced that
|
|
67
|
+
object: the glue was in `files` but not in `exports`, `initSync` was not a package export, and the only route was a
|
|
68
|
+
filesystem path into `node_modules/.../storeroom_js_binding.js`. **AND THE TRAP WAS WORSE THAN THE MISSING DOOR**: the
|
|
69
|
+
glue's own `initSync` returns the **raw wasm exports**, which also carry a callable `storeCreate`, so the old
|
|
70
|
+
`isBindings` test admitted it; the store then answered raw `[valueRef, errorRef, errorFlag]` triples from `read` and
|
|
71
|
+
threw at `answer.watched` from `write`.
|
|
72
|
+
|
|
73
|
+
**WHAT A CONSUMER ON `2.0.1` MEETS, AND WHAT THIS RELEASE CHANGES:**
|
|
74
|
+
|
|
75
|
+
1. **THE ARM'S ENTRY NOW EXPOSES THE BINDINGS STEP.** `initSync(input)` takes the host's bytes, a compiled
|
|
76
|
+
`WebAssembly.Module`, or the glue's own `{ module }` carrier; it performs the synchronous initialization and answers
|
|
77
|
+
**the glue module's namespace**, ready for `storeCreate`. The host still supplies the module; the package still fetches
|
|
78
|
+
nothing and reaches no filesystem. **IT IS A WRAPPER AND NOT A RE-EXPORT**: wasm-bindgen's `initSync` returns the raw
|
|
79
|
+
exports, so re-exporting it would hand back exactly the object this release refuses.
|
|
80
|
+
2. **THE FACTORY DOES NOT MOVE.** `storeCreate(bindings, cfg)` keeps its two positions and every existing consumer that
|
|
81
|
+
already passes the glue namespace observes the same store, the same fifteen members and the same refusals. The change
|
|
82
|
+
is additive.
|
|
83
|
+
3. **THE RAW `InitOutput` IS REFUSED AT CONSTRUCTION.** `isBindings` now requires **both** own callables — `storeCreate`
|
|
84
|
+
and `initSync` — and the raw exports object, which carries the first and not the second, is caught by its own branch.
|
|
85
|
+
The refusal is `PAR-JS-12`'s one `TypeError` with **no `status` member** (`D-157` item 3), and its message names the
|
|
86
|
+
raw `initSync` output instead of letting the `structuredClone` probe call it *"a Proxy"*.
|
|
87
|
+
4. **THE ARM'S DECLARATION GAINS THE THIRD REALM REGION.** `bindings/js/index.d.ts` brackets the bindings step beside
|
|
88
|
+
the `filePath` and `factory` regions; the WASM arm's emission reads `export function initSync(input: unknown): unknown;`
|
|
89
|
+
and the Node arm keeps the source's own comment and **declares no such function**. **The return is `unknown` for the
|
|
90
|
+
same reason the factory's first position is**: the package knows it answers the glue namespace, but that namespace's
|
|
91
|
+
shape is the glue's, and the runtime validates what arrives.
|
|
92
|
+
5. **THE GUIDE TEACHES THE ROUTE.** `docs/guides/package-use.md` §13.1 and its second-realm bullet now show
|
|
93
|
+
`import { initSync, storeCreate } from '@auspicion/provident-storeroom-js-wasm'`, the host supplying the bytes/module,
|
|
94
|
+
and `storeCreate(bindings, cfg)`; the sentence that told a consumer to reach *"the glue's own `initSync`"* is gone,
|
|
95
|
+
because that was the unimplementable step.
|
|
96
|
+
6. **THE CELLS.** `CW-11` drives the package-name route and the raw-output refusal; `CW-4` now proves the glue is in the
|
|
97
|
+
entry's transitive set while no `node:` specifier or top-level `await` joins it; `CW-6` keeps the arm's nineteen glue
|
|
98
|
+
entries; `CW-10` compiles `initSync(input)` and `storeCreate(bindings, cfg)` against the staged arm, with
|
|
99
|
+
`storeCreate(cfg)` and `filePath: 'x'` still refused; and `realm-declaration.test.mjs` walks the third region.
|
|
100
|
+
|
|
101
|
+
**WHAT DOES NOT MOVE, NAMED ONE BY ONE:** **the store, in every arm and every entry** — the fifteen instance members,
|
|
102
|
+
the nineteen wasm entries, the save channel, the crossing and every status and message · **the Node package's public
|
|
103
|
+
surface** — one `storeCreate`, one `exports` arm, one declaration · **the arm's `storeCreate(bindings, cfg)`** and every
|
|
104
|
+
consumer already passing the glue namespace · **the glue's own module shape** — the wrapper namespace is still what the
|
|
105
|
+
factory takes, and the raw exports are still what the glue's `initSync` returns · and **the closed status set**, because
|
|
106
|
+
the raw-output refusal is a call-shape `TypeError` and mints no member.
|
|
107
|
+
|
|
108
|
+
**THE VERSION: `2.1.0` AT FIFTEEN SITES, MOVING TOGETHER** — the main manifest's `version`, its five exact
|
|
109
|
+
`optionalDependencies` pins, the six `platforms/*/package.json` versions (the five native siblings and the WebAssembly
|
|
110
|
+
package), and the three generated version lines (`bindings/js/README.md`, `bindings/js/README.guide.md` and this change
|
|
111
|
+
list's landed copy). **The artefact is stamped from the manifest by `bindings/js/build.rs`, so `version()` answers
|
|
112
|
+
`2.1.0`**, and that is the value to assert against. **AND THIS RELEASE DESCRIBES `2.1.0` AND CLAIMS NO TAG**: the
|
|
113
|
+
cut-state is not a document's to state (`D-57`).
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## §2.0.1 · a PATCH — the WebAssembly arm's declaration spells the factory with the TWO positions its runtime and its guide require: one shipped artefact corrected in the declaration alone, the instrument that would have caught it, and no byte of the runtime moved
|
|
118
|
+
|
|
119
|
+
**THE VERSION IS `2.0.1` AND ITS CLASS IS A PATCH, AND THE CLASS IS NOT A JUDGEMENT THIS FILE MAKES: IT IS `D-203`
|
|
120
|
+
ITEM 5'S OWN SENTENCE.** `strata/decisions.md` · `D-203`, item 5, verbatim: *"its class is a **patch on the arm at
|
|
121
|
+
most** (the one-position form it replaces **could not construct at all**), and **the number is the architect's.**"*
|
|
122
|
+
**THE ARTEFACT IS `@auspicion/provident-storeroom-js-wasm`, THE SIXTH PACKAGE, AND IT IS THE ONLY ARTEFACT OF THE SET
|
|
123
|
+
WHOSE BYTES MOVE** — this release reaches a published declaration and nothing else.
|
|
124
|
+
|
|
125
|
+
**THE FINDING, AT THE BYTE (`D-203` items 1–3).** The arm's SHIPPED declaration read
|
|
126
|
+
`export function storeCreate(cfg: StoreConfig): StoreInstance;` — **the Node arm's line, byte for byte** — while its
|
|
127
|
+
runtime takes the initialised module at its FIRST position (`bindings/js/platforms/wasm/index.mjs`: *"`storeCreate(bindings,
|
|
128
|
+
cfg)` takes the initialised module at its FIRST position"*) and the guide teaches exactly that construction
|
|
129
|
+
(`docs/guides/package-use.md` §13.1: *"THE FACTORY TAKES TWO POSITIONS — `storeCreate(bindings, cfg)` — and the first is
|
|
130
|
+
the module"*). **So a TypeScript consumer of the arm could not spell the construction its own runtime requires**:
|
|
131
|
+
`storeCreate(bindings, cfg)` **failed the declared signature**, and `storeCreate(cfg)` **compiled and could not carry the
|
|
132
|
+
injected module** (`D-203` item 3).
|
|
133
|
+
|
|
134
|
+
1. **THE DECLARATION'S GENERATOR GAINS A SECOND REALM REGION, AND LOSES NO GUARD.** `scripts/emit-declarations.mjs`
|
|
135
|
+
replaced **one** region (`// ⟦realm:filePath:begin⟧` … end) and refused a second marker by name; **it now derives a
|
|
136
|
+
SET of regions**, each refused exactly as the one was — **each marker exactly once, each alone on its own line at two
|
|
137
|
+
spaces of indentation, the body between them exactly the line the Node arm declares, a refusal on overlap, and every
|
|
138
|
+
refusal naming WHICH REGION it refused.** The refuse-on-second-marker rule is refuse-on-second-marker-**per region**,
|
|
139
|
+
and it is not weakened: a duplicated marker still stops the run rather than being taken at its first match.
|
|
140
|
+
2. **THE ARM'S FACTORY BODY IS `export function storeCreate(bindings: unknown, cfg: StoreConfig): StoreInstance;`, AND
|
|
141
|
+
`unknown` IS THE HONEST TYPE OF A HOST-SUPPLIED MODULE.** The package instantiates nothing on this arm (`D-155` item
|
|
142
|
+
3), the HOST hands the initialised module in, and **the runtime validates what arrives** (`bindings/js/src/entry/
|
|
143
|
+
addon-slot.mjs`'s `installAddon`, which refuses `null`, `undefined`, a primitive, a function and an object carrying no
|
|
144
|
+
callable `storeCreate`) — **so a named type in that position would be this package claiming the HOST's shape.** The
|
|
145
|
+
arm's `filePath` body is the `readonly filePath?: never;` it has been since `D-155` item 2, byte for byte.
|
|
146
|
+
3. **THE NODE ARM'S DECLARATION MOVES NO BYTE.** `bindings/js/index.d.ts` still declares `storeCreate(cfg: StoreConfig):
|
|
147
|
+
StoreInstance;` at its one position; **the factory's markers are two comment lines at two spaces of indentation**, so
|
|
148
|
+
no member census, no status count and no module-level export count can see them — the arm's emission is still the
|
|
149
|
+
source's own bytes with the regions' bodies replaced, and the generator still asserts that identity before it writes.
|
|
150
|
+
4. **AND THE INSTRUMENT `D-203` ITEM 5 OWED NOW EXISTS — `CW-10`.** `tests/e2e/wasm-arm.test.mjs` compiles a generated
|
|
151
|
+
`.ts` file in a temp directory with the project's own `tsc` (`--noEmit`, TypeScript 5.9.3) against **the STAGED ARM's
|
|
152
|
+
`bindings/js/platforms/wasm/index.d.ts`**, and requires all three limbs: **`storeCreate(bindings, cfg)` TYPECHECKS**;
|
|
153
|
+
**`storeCreate(cfg)` does NOT**, through a `@ts-expect-error` whose unused form is itself `TS2578` and therefore a
|
|
154
|
+
failing run; and **`filePath: 'x'` does NOT**, the `never` narrowing read beside the region it belongs to. **It fails on
|
|
155
|
+
the `2.0.0` tree and passes on this one** — which is the only reading that makes it an instrument rather than a
|
|
156
|
+
decoration (`D-203` item 4: *"no TypeScript consumer is compiled against the ARM's declaration anywhere"*).
|
|
157
|
+
|
|
158
|
+
**WHAT A CONSUMER ON `2.0.0` MEETS:**
|
|
159
|
+
|
|
160
|
+
- **A TYPESCRIPT CONSUMER OF THE WEBASSEMBLY ARM CAN NOW WRITE THE CONSTRUCTION THE GUIDE TEACHES.** `storeCreate(bindings,
|
|
161
|
+
cfg)` compiles against the arm's shipped declaration, with the host's initialised module at position one and a `cfg`
|
|
162
|
+
that carries no `filePath`; **`storeCreate(cfg)` is now the compile error it always was at runtime**, and it stops being
|
|
163
|
+
the one form the compiler blessed and the store refused.
|
|
164
|
+
- **THE RUNTIME NEVER MOVED.** **No `.mjs` byte and no `.rs` byte of this release changes**: the arm's entry still takes
|
|
165
|
+
two positions, the crossing is the same clone, the nineteen module entries are unmoved, and every cell that drives the
|
|
166
|
+
arm in JavaScript (`CW-1`…`CW-9`) reads what it read on `2.0.0`.
|
|
167
|
+
- **A JAVASCRIPT CONSUMER SEES NO CHANGE AT ALL.** The defect was declaration-only (`D-203` item 6), so an application
|
|
168
|
+
that already called `storeCreate(bindings, cfg)` — the only form the runtime ever admitted — observes the same store,
|
|
169
|
+
the same members, the same statuses and the same refusals.
|
|
170
|
+
- **AND A CONSUMER OF `provident-storeroom` ITSELF SEES NO CHANGE EITHER**: its declaration's factory, its member set, its
|
|
171
|
+
statuses, its refusal messages and its records are byte-unmoved by this release.
|
|
172
|
+
|
|
173
|
+
**THE MIGRATION SENTENCE, FOR A CONSUMER WHO WORKED AROUND THE DEFECT ON `2.0.0`.** **If you cast or annotated around the
|
|
174
|
+
arm's one-position signature — a `@ts-expect-error`, an `as` cast, or a locally declared wrapper — DELETE THE WORKAROUND
|
|
175
|
+
AND WRITE THE CALL THE GUIDE TEACHES**: `storeCreate(bindings, cfg)`, where `bindings` is the module namespace the host
|
|
176
|
+
obtained from the glue's own `initSync` and `cfg` is your configuration. **The runtime call was always two-positioned, so
|
|
177
|
+
the call itself does not move and the workaround is the only thing that does**; a consumer who never wrote one has no
|
|
178
|
+
migration to perform.
|
|
179
|
+
|
|
180
|
+
**WHAT DOES NOT MOVE, NAMED ONE BY ONE:** **the runtime, in every arm and every entry** — the nineteen module entries,
|
|
181
|
+
the fifteen instance members, the save channel and the crossing · **the `cfg` domain on both realms** — `filePath` is
|
|
182
|
+
still `never` on the arm and still a `string` on the Node build · **the closed status set** and every refusal's code and
|
|
183
|
+
message · **the Node arm's own declaration surface** · **the guide's §13.1**, which was already right and is not edited by
|
|
184
|
+
this release (*"THE FACTORY TAKES TWO POSITIONS"*) · and **the cell count of every battery that was green on `2.0.0`**,
|
|
185
|
+
which this release leaves green, one cell richer.
|
|
186
|
+
|
|
187
|
+
**THE VERSION MOVES TWELVE SITES TOGETHER: the main manifest's `version`, its FIVE exact `optionalDependencies` pins, and
|
|
188
|
+
the SIX `platforms/*/package.json` versions** — the five native siblings and the WebAssembly sibling, whose `version` its
|
|
189
|
+
own coupled-version clause names. **The artefact is stamped from the manifest by `bindings/js/build.rs`, so `version()`
|
|
190
|
+
answers `2.0.1`**, and that is the value to assert against. **AND THE THREE GENERATED VERSION LINES — `bindings/js/README.md`,
|
|
191
|
+
the guide's landing `bindings/js/README.guide.md` and the change list's landing `bindings/js/RELEASE-NOTES.md` — are
|
|
192
|
+
re-derived from that manifest and re-staged BYTE-FOR-BYTE from their canonicals, never hand-edited** (`DEF-AC` (b);
|
|
193
|
+
`scripts/publish.sh --figures` is the assertion).
|
|
194
|
+
|
|
195
|
+
**AND THIS RELEASE DESCRIBES `2.0.1` AND CLAIMS NO TAG**: the cut-state is not a document's to state (`D-57`).
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
58
199
|
## §2.0.0 · a MAJOR — the second claimed realm, the save arm it made possible, AND THE REMOVAL OF A PUBLISHED DECLARATION MEMBER: a WebAssembly build in its own package, three `cfg` keys' companions, a twenty-third status, two receipt accessors, and `JournalOp.compacted` gone from the record and the declaration
|
|
59
200
|
|
|
60
201
|
**⟶ THIS HEADING READ `§1.13.0 · a MINOR` UNTIL 2026-11-17, AND `D-158`'s CLASS IS SUPERSEDED — NOT WITHDRAWN.**
|
package/index.d.ts
CHANGED
|
@@ -693,7 +693,15 @@ export interface BaseState {
|
|
|
693
693
|
* read returns `undefined` because the key is absent, and it is absent from the write's record, the delete's
|
|
694
694
|
* record and every op the kernel's repair leg copies. **THE CLASS IS `MAJOR` (`2.0.0`, `D-190`) for exactly
|
|
695
695
|
* this reason**: a PUBLISHED declaration member left the surface, which no `MINOR` absorbs — **`D-158`'s
|
|
696
|
-
* `MINOR` at `1.13.0` is SUPERSEDED and this declaration describes `2.0.0`.**
|
|
696
|
+
* `MINOR` at `1.13.0` is SUPERSEDED and this declaration describes `2.0.0`.** **⟶ AND THE LINE THAT NAMES THE VERSION IS RE-CUT, 2026-11-20 — the
|
|
697
|
+
* sentence above is `2.0.0`'s own reading and stands; **what a reader needs is that this declaration now describes `2.0.1`**, whose class is a `PATCH` because
|
|
698
|
+
* `D-203`'s fix changes the ARM's emitted declaration and no runtime byte** (`D-203` item 5: *"a patch on the arm at most … could not construct at all"*).
|
|
699
|
+
* **The `MAJOR` reading above is not withdrawn: it is `2.0.0`'s, and this file has carried two classes since.**
|
|
700
|
+
* **⟶ AND THE VERSION LINE MOVES ONCE MORE, 2026-11-29 — `D-206` / FR-1 / 2.1.0.** **The two readings above stand as
|
|
701
|
+
* their dates' own; what a reader needs now is that this declaration describes `2.1.0`, whose class is a `MINOR` because
|
|
702
|
+
* the arm's entry gains the `initSync` value-level name and no published member is removed or narrowed.** **The Node
|
|
703
|
+
* arm's own declared surface is unmoved**: its one `storeCreate(cfg)` and its fifteen-member instance are the bytes they
|
|
704
|
+
* were, and the bindings step is the WASM arm's emission alone (the `bindings` region above).
|
|
697
705
|
*/
|
|
698
706
|
export interface JournalOp {
|
|
699
707
|
readonly opId: string;
|
|
@@ -1646,7 +1654,59 @@ export interface StoreInstance {
|
|
|
1646
1654
|
* runtime first, this checkout's own module-relative addon second, and answers the declared absent form
|
|
1647
1655
|
* when neither yields a loadable artefact.
|
|
1648
1656
|
*/
|
|
1657
|
+
/**
|
|
1658
|
+
* **⟦ THE FACTORY'S POSITION IS THE DECLARATION'S SECOND REALM-CONDITIONAL BYTE, ADDED 2026-11-20 — `D-203`, WHOSE
|
|
1659
|
+
* OWN THREE ROWS THIS REGION EXISTS FOR.** *"the arm's runtime takes TWO positions"*
|
|
1660
|
+
* (`bindings/js/platforms/wasm/index.mjs`'s own docblock: *"`storeCreate(bindings, cfg)` takes the initialised module
|
|
1661
|
+
* at its FIRST position"*) · *"the guide teaches TWO"* (`docs/guides/package-use.md` §13.1: *"THE FACTORY TAKES TWO
|
|
1662
|
+
* POSITIONS — `storeCreate(bindings, cfg)` — and the first is the module"*) · *"the arm's SHIPPED declaration takes
|
|
1663
|
+
* ONE"* — which is what this region removes: the arm's emission was the Node arm's signature byte for byte, so **a
|
|
1664
|
+
* TypeScript consumer of `@auspicion/provident-storeroom-js-wasm` could not spell the construction its runtime and its
|
|
1665
|
+
* guide require** (`D-203` item 3: *"`storeCreate(bindings, cfg)` fails the declared signature; `storeCreate(cfg)`
|
|
1666
|
+
* compiles and cannot carry the injected module"*).
|
|
1667
|
+
*
|
|
1668
|
+
* **THE TWO COMMENT LINES THAT BRACKET THE DECLARATION BELOW — both at this file's marker depth of two spaces, and
|
|
1669
|
+
* neither carrying a member's name-and-colon or name-and-paren shape — DELIMIT THE SECOND REGION
|
|
1670
|
+
* `scripts/emit-declarations.mjs` READS**, exactly as the `filePath` markers above delimit the first (`D-155` item 2;
|
|
1671
|
+
* `docs/L3/wasm-realm/design.md` §6). **The form is the reason the region can stand here at all**: no member read a
|
|
1672
|
+
* battery file performs on an interface block matches a line whose first two characters after the indentation are
|
|
1673
|
+
* `//`, and the one read this file's module level is subject to — the count of lines beginning `export function` —
|
|
1674
|
+
* is a count of lines that begin at column zero, which a marker at two spaces is not. **So this region moves no member
|
|
1675
|
+
* census, no status count, no export count and no rank.**
|
|
1676
|
+
*
|
|
1677
|
+
* **WHAT THE WASM ARM'S EMISSION PUTS INSIDE IT IS ONE LINE, AND ITS FIRST TYPE IS `unknown` BECAUSE THAT IS THE
|
|
1678
|
+
* HONEST TYPE OF A HOST-SUPPLIED MODULE**: `export function storeCreate(bindings: unknown, cfg: StoreConfig):
|
|
1679
|
+
* StoreInstance;`. **A NAMED TYPE IN THAT POSITION WOULD BE THIS PACKAGE CLAIMING THE HOST'S SHAPE** — the module is
|
|
1680
|
+
* the host's, the package instantiates nothing (`D-155` item 3), and the runtime validates what arrives
|
|
1681
|
+
* (`bindings/js/src/entry/addon-slot.mjs`'s `installAddon`, which refuses `null`, `undefined`, a primitive, a function
|
|
1682
|
+
* and an object carrying no callable `storeCreate`) — **so the declaration admits every value and the runtime is what
|
|
1683
|
+
* says which values are a module.**
|
|
1684
|
+
*
|
|
1685
|
+
* **AND THE NODE ARM'S SIGNATURE DOES NOT MOVE**, byte for byte: the region's Node body is the line below, the
|
|
1686
|
+
* emission of the Node arm is this file's own bytes with the region unchanged, and the script asserts that identity
|
|
1687
|
+
* before it writes either file. **A reader who opened this declaration to find the ONE name and the ONE position the
|
|
1688
|
+
* Node arm has still finds them, one marker pair down.**
|
|
1689
|
+
*/
|
|
1690
|
+
// ⟦realm:factory:begin⟧
|
|
1649
1691
|
export function storeCreate(cfg: StoreConfig): StoreInstance;
|
|
1692
|
+
// ⟦realm:factory:end⟧
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* **THE BINDINGS STEP IS THE DECLARATION'S THIRD REALM-CONDITIONAL BYTE — ADDED 2026-11-29, `D-206` / FR-1 / 2.1.0.**
|
|
1696
|
+
* **The WebAssembly arm's entry exposes `initSync(input)` so a host reaches the bindings through the package name and
|
|
1697
|
+
* not through `node_modules/.../storeroom_js_binding.js`** (`FR-1`; the downstream handoff of 2026-11-29). The Node arm
|
|
1698
|
+
* has no such export: its construction resolves the addon itself, so there is no host-supplied module to initialize and
|
|
1699
|
+
* no bindings value for a caller to hold. **THE TWO COMMENT LINES THAT BRACKET THE BODY BELOW ARE THE REGION MARKERS
|
|
1700
|
+
* `scripts/emit-declarations.mjs` READS** — at this file's two-space marker depth, like the `filePath` and `factory`
|
|
1701
|
+
* regions — and **the WASM arm's emission replaces the Node comment with `export function initSync(input: unknown):
|
|
1702
|
+
* unknown;` while the Node arm keeps the comment and every other byte.** **The return is `unknown` on purpose**: the
|
|
1703
|
+
* package knows it answers the glue namespace, but the shape of that namespace is the glue's and not this declaration's,
|
|
1704
|
+
* and the runtime is what validates the first position `storeCreate` then reads (`D-203` item 2's own reading of a
|
|
1705
|
+
* host-supplied module).
|
|
1706
|
+
*/
|
|
1707
|
+
// ⟦realm:bindings:begin⟧
|
|
1708
|
+
// THE NODE ARM HAS NO BINDINGS STEP: the WebAssembly arm's declaration replaces this line with `initSync`.
|
|
1709
|
+
// ⟦realm:bindings:end⟧
|
|
1650
1710
|
|
|
1651
1711
|
/**
|
|
1652
1712
|
* **THE POST-CREATION CONSTRAINT PAIR — `parameter-semantics.md §2.24` (`PAR-JS-24`)**: the key the three
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "provident-storeroom",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "U-STOREROOM-PUBLISH: the published Node ESM binding for the native Rust store of Provident-Storeroom — the entry resolves the scoped per-target platform package first, the checkout's own module-relative addon second, and answers the store's single declared absent-addon form when neither loads",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"src/constraint-kernel.mjs"
|
|
43
43
|
],
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@auspicion/provident-storeroom-js-linux-x64-gnu": "2.
|
|
46
|
-
"@auspicion/provident-storeroom-js-linux-arm64-gnu": "2.
|
|
47
|
-
"@auspicion/provident-storeroom-js-darwin-x64": "2.
|
|
48
|
-
"@auspicion/provident-storeroom-js-darwin-arm64": "2.
|
|
49
|
-
"@auspicion/provident-storeroom-js-win32-x64-msvc": "2.
|
|
45
|
+
"@auspicion/provident-storeroom-js-linux-x64-gnu": "2.1.0",
|
|
46
|
+
"@auspicion/provident-storeroom-js-linux-arm64-gnu": "2.1.0",
|
|
47
|
+
"@auspicion/provident-storeroom-js-darwin-x64": "2.1.0",
|
|
48
|
+
"@auspicion/provident-storeroom-js-darwin-arm64": "2.1.0",
|
|
49
|
+
"@auspicion/provident-storeroom-js-win32-x64-msvc": "2.1.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
package/src/entry/addon-slot.mjs
CHANGED
|
@@ -141,14 +141,16 @@ export function installAddonPath(path) {
|
|
|
141
141
|
|
|
142
142
|
/// **THE ONE SETTER FOR THE MODULE, CALLED ONCE BY THE INJECTED ARM'S ENTRY** (`storeCreate(bindings, cfg)`).
|
|
143
143
|
///
|
|
144
|
-
/// **THE DOMAIN IS
|
|
145
|
-
///
|
|
146
|
-
///
|
|
147
|
-
///
|
|
148
|
-
///
|
|
149
|
-
///
|
|
150
|
-
///
|
|
151
|
-
///
|
|
144
|
+
/// **THE DOMAIN IS THE GLUE MODULE'S NAMESPACE, AND IT IS TESTED BY TWO OWN CALLABLES — `storeCreate` AND, FROM
|
|
145
|
+
/// `D-206` / FR-1 / 2.1.0, `initSync` — AND EVERYTHING ELSE IS REFUSED IN THE DECLARED FORM** — `null`,
|
|
146
|
+
/// `undefined`, a primitive, a function, an object that carries neither member, and **the raw `InitOutput` the
|
|
147
|
+
/// glue's own `initSync` answers**, which carries `storeCreate` but no `initSync` and is named by its own branch
|
|
148
|
+
/// below. The class test is an OWN DATA read (`getOwnPropertyDescriptor`), so a caller's own accessor is never
|
|
149
|
+
/// invoked and no trap runs on this path (`A76`; `DD-34`'s discipline one layer over). **THE REFUSAL IS THE SAME
|
|
150
|
+
/// CLASS FORM `withAddon()` ANSWERS WITH AN EMPTY INJECTED SLOT** — `PAR-JS-12`'s one `TypeError`, its `status`
|
|
151
|
+
/// member ABSENT — because *"the factory was handed nothing, or something that is not the bindings"* is the state
|
|
152
|
+
/// `design.md` §8 names and no ruling gives it a member of its own (`D-157` item 3); **the slot is left EMPTY by the
|
|
153
|
+
/// refusal**, so every later call answers the same form rather than a half-installed table.
|
|
152
154
|
///
|
|
153
155
|
/// **A REPEATED INSTALL OF THE SAME MODULE REBUILDS NOTHING**: the table is built once per module object, so the
|
|
154
156
|
/// answer a part takes at `entryOf()` is stable for the life of the construction. (A host that hands a SECOND
|
|
@@ -172,8 +174,23 @@ export function installAddon(module) {
|
|
|
172
174
|
// read with `D-154`'s second realm and `D-155` item 3's injected instance (the factory's first position is the
|
|
173
175
|
// architect's own spelling, so its misuse is the host's and not a store state).
|
|
174
176
|
//
|
|
177
|
+
// **⟶ AND THE RAW `InitOutput` IS REFUSED BY ITS OWN NAME FROM 2026-11-29 — `D-206` / FR-1 / 2.1.0.** **IT IS THE
|
|
178
|
+
// OBJECT THE GLUE'S OWN `initSync` ANSWERS** — the raw wasm exports, carrying `storeCreate`, `read`, `write` and a
|
|
179
|
+
// `memory` — **and it is NOT the glue module's namespace**, whose wrapper functions take values off the externref
|
|
180
|
+
// table. **THE BRANCH STANDS BEFORE `classSpelling` ON PURPOSE**: on this arm `classSpelling` uses the
|
|
181
|
+
// `structuredClone` probe, and the raw exports object carries functions, so the probe throws and the class would be
|
|
182
|
+
// misreported as *"a Proxy"* — a message that names neither the object nor the mistake. **THE FORM IS STILL
|
|
183
|
+
// `PAR-JS-12`'S `TypeError` WITH NO `status`** (`D-157` item 3): no store exists, no verb is reached, and no member
|
|
184
|
+
// of the closed set names this state.
|
|
185
|
+
//
|
|
175
186
|
// **AND THE SLOT IS STILL LEFT EMPTY BY THE REFUSAL**, so every later call answers the same class form rather than a
|
|
176
187
|
// half-installed table.
|
|
188
|
+
if (isRawInitOutput(module)) {
|
|
189
|
+
throw new TypeError(
|
|
190
|
+
"storeCreate: the injected bindings are the raw WebAssembly exports object returned by the glue's initSync, "
|
|
191
|
+
+ "not the glue module's namespace; pass the result of this package's initSync",
|
|
192
|
+
);
|
|
193
|
+
}
|
|
177
194
|
throw new TypeError(
|
|
178
195
|
`storeCreate: the injected bindings are ${classSpelling(module)}, and the first position is the WebAssembly module's own namespace object`,
|
|
179
196
|
);
|
|
@@ -392,10 +409,29 @@ function defineEntry(table, name, entry) {
|
|
|
392
409
|
Object.defineProperty(table, name, { value: entry, writable: true, enumerable: true, configurable: true });
|
|
393
410
|
}
|
|
394
411
|
|
|
395
|
-
/// **WHETHER A HANDED VALUE IS THE BINDINGS** —
|
|
396
|
-
///
|
|
412
|
+
/// **WHETHER A HANDED VALUE IS THE BINDINGS** — the glue module's namespace, read by descriptor so no caller's
|
|
413
|
+
/// accessor runs and no trap is invoked (`A76`'s class-first discipline, one layer over). **TWO OWN CALLABLES FROM
|
|
414
|
+
/// `D-206` / FR-1 / 2.1.0: `storeCreate` AND `initSync`** — the first is the construction the dispatch table forwards,
|
|
415
|
+
/// the second is the module-only member that tells the namespace from the raw `InitOutput`, which carries the first
|
|
416
|
+
/// and not the second.
|
|
397
417
|
function isBindings(module) {
|
|
398
|
-
return module !== null && typeof module === 'object'
|
|
418
|
+
return module !== null && typeof module === 'object'
|
|
419
|
+
&& typeof ownMember(module, 'storeCreate') === 'function'
|
|
420
|
+
&& typeof ownMember(module, 'initSync') === 'function';
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/// **WHETHER A HANDED VALUE IS THE RAW `InitOutput`** — the object wasm-bindgen's own `initSync` returns: **the raw
|
|
424
|
+
/// wasm exports**, which carry the `storeCreate` entry and a `memory` and **no `initSync`**. **IT IS NOT THE GLUE
|
|
425
|
+
/// MODULE'S NAMESPACE** — that one is the module's exports, carries `initSync`, and carries no `memory` — so this
|
|
426
|
+
/// predicate is the one test that tells the trap from the bindings before any verb is reached (`D-206` / FR-1 / 2.1.0).
|
|
427
|
+
/// **IT READS BOTH MEMBERS BY DESCRIPTOR** (no accessor, no trap) and never coerces the value.
|
|
428
|
+
function isRawInitOutput(module) {
|
|
429
|
+
if (module === null || typeof module !== 'object') return false;
|
|
430
|
+
if (typeof ownMember(module, 'initSync') === 'function') return false;
|
|
431
|
+
const memory = ownMember(module, 'memory');
|
|
432
|
+
return typeof WebAssembly === 'object' && WebAssembly !== null
|
|
433
|
+
&& typeof WebAssembly.Memory === 'function'
|
|
434
|
+
&& memory instanceof WebAssembly.Memory;
|
|
399
435
|
}
|
|
400
436
|
|
|
401
437
|
// ---------------------------------------------------------------------------------------------
|