@ai-ecoverse/slicc-browsers 1.51.0 → 1.53.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.md +9 -7
- package/catalog.json +81 -0
- package/engine/builtins.mjs +34 -0
- package/engine/engine-js.mjs +1 -0
- package/engine/engine-wasm.mjs +1 -1
- package/engine/engine.wasm +0 -0
- package/engine/runtime.mjs +12 -0
- package/engine-vectors.json +1611 -162
- package/engine.mjs +38 -46
- package/guard-vectors.json +650 -18
- package/package.json +16 -7
- package/protected-error-page.mjs +250 -28
- package/protected-js.mjs +1 -0
- package/protected.json +329 -11
- package/protected.mjs +1 -1
- package/schema/catalog.schema.json +28 -0
- package/schema/engine-vectors.schema.json +3 -1
- package/schema/protected.schema.json +3 -0
- package/sealed-event-rules.mjs +18 -0
- package/sealed-events.mjs +8 -0
package/engine/engine.wasm
CHANGED
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import bytes from './engine-wasm.mjs';
|
|
2
|
+
|
|
3
|
+
let compiled;
|
|
4
|
+
|
|
5
|
+
export function createInstance() {
|
|
6
|
+
compiled ??= new WebAssembly.Module(bytes);
|
|
7
|
+
return new WebAssembly.Instance(compiled).exports;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export async function prepare() {
|
|
11
|
+
compiled ??= await WebAssembly.compile(bytes);
|
|
12
|
+
}
|