@danielsimonjr/mathts-wasm 0.2.2 → 0.2.3
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/build/bindings/wasm-loader.d.ts.map +1 -1
- package/build/mathts-debug.js +2 -2
- package/build/mathts-debug.wasm +0 -0
- package/build/mathts-debug.wasm.map +1 -1
- package/build/mathts.js +2 -2
- package/build/mathts.wasm +0 -0
- package/build/mathts.wat +23392 -23477
- package/build/wasm-manifest.json +2 -2
- package/package.json +66 -66
package/build/mathts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
async function instantiate(module, imports = {}) {
|
|
2
2
|
const adaptedImports = {
|
|
3
|
-
env: Object.
|
|
3
|
+
env: Object.setPrototypeOf({
|
|
4
4
|
abort(message, fileName, lineNumber, columnNumber) {
|
|
5
5
|
// ~lib/builtins/abort(~lib/string/String | null?, ~lib/string/String | null?, u32?, u32?) => void
|
|
6
6
|
message = __liftString(message >>> 0);
|
|
@@ -12,7 +12,7 @@ async function instantiate(module, imports = {}) {
|
|
|
12
12
|
throw Error(`${message} in ${fileName}:${lineNumber}:${columnNumber}`);
|
|
13
13
|
})();
|
|
14
14
|
},
|
|
15
|
-
}),
|
|
15
|
+
}, Object.assign(Object.create(globalThis), imports.env || {})),
|
|
16
16
|
};
|
|
17
17
|
const { exports } = await WebAssembly.instantiate(module, adaptedImports);
|
|
18
18
|
const memory = exports.memory || imports.env.memory;
|
package/build/mathts.wasm
CHANGED
|
Binary file
|