Skip to content

Commit 93c2132

Browse files
committed
chore(js): Update WASM module
1 parent af4d04d commit 93c2132

File tree

4 files changed

+42
-42
lines changed

4 files changed

+42
-42
lines changed

bindings/javascript/wasm/index.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ heap.push(void 0, null, true, false);
3333
function getObject(idx) {
3434
return heap[idx];
3535
}
36-
var heap_next = heap.length;
37-
function dropObject(idx) {
38-
if (idx < 132)
39-
return;
40-
heap[idx] = heap_next;
41-
heap_next = idx;
42-
}
43-
function takeObject(idx) {
44-
const ret = getObject(idx);
45-
dropObject(idx);
46-
return ret;
47-
}
4836
var WASM_VECTOR_LEN = 0;
4937
var cachedUint8Memory0 = null;
5038
function getUint8Memory0() {
@@ -116,6 +104,7 @@ function getStringFromWasm0(ptr, len) {
116104
ptr = ptr >>> 0;
117105
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
118106
}
107+
var heap_next = heap.length;
119108
function addHeapObject(obj) {
120109
if (heap_next === heap.length)
121110
heap.push(heap.length + 1);
@@ -124,6 +113,17 @@ function addHeapObject(obj) {
124113
heap[idx] = obj;
125114
return idx;
126115
}
116+
function dropObject(idx) {
117+
if (idx < 132)
118+
return;
119+
heap[idx] = heap_next;
120+
heap_next = idx;
121+
}
122+
function takeObject(idx) {
123+
const ret = getObject(idx);
124+
dropObject(idx);
125+
return ret;
126+
}
127127
var cachedFloat64Memory0 = null;
128128
function getFloat64Memory0() {
129129
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
@@ -261,14 +261,6 @@ function __wbg_get_imports() {
261261
const ret = getObject(arg0) === void 0;
262262
return ret;
263263
};
264-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
265-
takeObject(arg0);
266-
};
267-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
268-
const v = getObject(arg0);
269-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
270-
return ret;
271-
};
272264
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
273265
const obj = getObject(arg1);
274266
const ret = typeof obj === "string" ? obj : void 0;
@@ -277,6 +269,11 @@ function __wbg_get_imports() {
277269
getInt32Memory0()[arg0 / 4 + 1] = len1;
278270
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
279271
};
272+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
273+
const v = getObject(arg0);
274+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
275+
return ret;
276+
};
280277
imports.wbg.__wbindgen_is_object = function(arg0) {
281278
const val = getObject(arg0);
282279
const ret = typeof val === "object" && val !== null;
@@ -306,6 +303,9 @@ function __wbg_get_imports() {
306303
const ret = +getObject(arg0);
307304
return ret;
308305
};
306+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
307+
takeObject(arg0);
308+
};
309309
imports.wbg.__wbg_length_1d25fa9e4ac21ce7 = function(arg0) {
310310
const ret = getObject(arg0).length;
311311
return ret;

bindings/javascript/wasm/index.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/javascript/wasm/index.mjs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ heap.push(void 0, null, true, false);
55
function getObject(idx) {
66
return heap[idx];
77
}
8-
var heap_next = heap.length;
9-
function dropObject(idx) {
10-
if (idx < 132)
11-
return;
12-
heap[idx] = heap_next;
13-
heap_next = idx;
14-
}
15-
function takeObject(idx) {
16-
const ret = getObject(idx);
17-
dropObject(idx);
18-
return ret;
19-
}
208
var WASM_VECTOR_LEN = 0;
219
var cachedUint8Memory0 = null;
2210
function getUint8Memory0() {
@@ -88,6 +76,7 @@ function getStringFromWasm0(ptr, len) {
8876
ptr = ptr >>> 0;
8977
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
9078
}
79+
var heap_next = heap.length;
9180
function addHeapObject(obj) {
9281
if (heap_next === heap.length)
9382
heap.push(heap.length + 1);
@@ -96,6 +85,17 @@ function addHeapObject(obj) {
9685
heap[idx] = obj;
9786
return idx;
9887
}
88+
function dropObject(idx) {
89+
if (idx < 132)
90+
return;
91+
heap[idx] = heap_next;
92+
heap_next = idx;
93+
}
94+
function takeObject(idx) {
95+
const ret = getObject(idx);
96+
dropObject(idx);
97+
return ret;
98+
}
9999
var cachedFloat64Memory0 = null;
100100
function getFloat64Memory0() {
101101
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
@@ -233,14 +233,6 @@ function __wbg_get_imports() {
233233
const ret = getObject(arg0) === void 0;
234234
return ret;
235235
};
236-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
237-
takeObject(arg0);
238-
};
239-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
240-
const v = getObject(arg0);
241-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
242-
return ret;
243-
};
244236
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
245237
const obj = getObject(arg1);
246238
const ret = typeof obj === "string" ? obj : void 0;
@@ -249,6 +241,11 @@ function __wbg_get_imports() {
249241
getInt32Memory0()[arg0 / 4 + 1] = len1;
250242
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
251243
};
244+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
245+
const v = getObject(arg0);
246+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
247+
return ret;
248+
};
252249
imports.wbg.__wbindgen_is_object = function(arg0) {
253250
const val = getObject(arg0);
254251
const ret = typeof val === "object" && val !== null;
@@ -278,6 +275,9 @@ function __wbg_get_imports() {
278275
const ret = +getObject(arg0);
279276
return ret;
280277
};
278+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
279+
takeObject(arg0);
280+
};
281281
imports.wbg.__wbg_length_1d25fa9e4ac21ce7 = function(arg0) {
282282
const ret = getObject(arg0).length;
283283
return ret;
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)