summaryrefslogtreecommitdiff
path: root/test/wasm2js/bulk-memory.2asm.js.opt
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/bulk-memory.2asm.js.opt')
-rw-r--r--test/wasm2js/bulk-memory.2asm.js.opt17
1 files changed, 6 insertions, 11 deletions
diff --git a/test/wasm2js/bulk-memory.2asm.js.opt b/test/wasm2js/bulk-memory.2asm.js.opt
index eb58d1556..50c1eb136 100644
--- a/test/wasm2js/bulk-memory.2asm.js.opt
+++ b/test/wasm2js/bulk-memory.2asm.js.opt
@@ -1,6 +1,5 @@
-function asmFunc(importObject) {
- var env = importObject.env || importObject;
+function asmFunc(imports) {
var Math_imul = Math.imul;
var Math_fround = Math.fround;
var Math_abs = Math.abs;
@@ -30,8 +29,7 @@ var retasmFunc = asmFunc({
bufferView.fill(value, dest, dest + size);
}
-function asmFunc(importObject) {
- var env = importObject.env || importObject;
+function asmFunc(imports) {
var buffer = new ArrayBuffer(65536);
var HEAP8 = new Int8Array(buffer);
var HEAP16 = new Int16Array(buffer);
@@ -133,8 +131,7 @@ function initActiveSegments(imports) {
bufferView.copyWithin(dest, source, source + size);
}
-function asmFunc(importObject) {
- var env = importObject.env || importObject;
+function asmFunc(imports) {
var buffer = new ArrayBuffer(65536);
var HEAP8 = new Int8Array(buffer);
var HEAP16 = new Int16Array(buffer);
@@ -169,7 +166,7 @@ function asmFunc(importObject) {
}
bufferView = HEAPU8;
- initActiveSegments(env);
+ initActiveSegments(imports);
function __wasm_memory_size() {
return buffer.byteLength / 65536 | 0;
}
@@ -214,8 +211,7 @@ memorySegments[0] = base64DecodeToExistingUint8Array(new Uint8Array(4), 0, "qrvM
bufferView.set(memorySegments[segment].subarray(offset, offset + size), dest);
}
-function asmFunc(importObject) {
- var env = importObject.env || importObject;
+function asmFunc(imports) {
var buffer = new ArrayBuffer(65536);
var HEAP8 = new Int8Array(buffer);
var HEAP16 = new Int16Array(buffer);
@@ -290,8 +286,7 @@ export var load8_u = retasmFunc.load8_u;
var bufferView;
function wasm2js_trap() { throw new Error('abort'); }
-function asmFunc(importObject) {
- var env = importObject.env || importObject;
+function asmFunc(imports) {
var buffer = new ArrayBuffer(65536);
var HEAP8 = new Int8Array(buffer);
var HEAP16 = new Int16Array(buffer);