Skip to content

Commit 409a57e

Browse files
committed
chore(js): Update vendored WASM module
1 parent 1fdda04 commit 409a57e

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,6 +33,18 @@ 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+
}
3648
var WASM_VECTOR_LEN = 0;
3749
var cachedUint8Memory0 = null;
3850
function getUint8Memory0() {
@@ -104,7 +116,6 @@ function getStringFromWasm0(ptr, len) {
104116
ptr = ptr >>> 0;
105117
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
106118
}
107-
var heap_next = heap.length;
108119
function addHeapObject(obj) {
109120
if (heap_next === heap.length)
110121
heap.push(heap.length + 1);
@@ -113,17 +124,6 @@ function addHeapObject(obj) {
113124
heap[idx] = obj;
114125
return idx;
115126
}
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,6 +261,14 @@ 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+
};
264272
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
265273
const obj = getObject(arg1);
266274
const ret = typeof obj === "string" ? obj : void 0;
@@ -269,11 +277,6 @@ function __wbg_get_imports() {
269277
getInt32Memory0()[arg0 / 4 + 1] = len1;
270278
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
271279
};
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-
};
277280
imports.wbg.__wbindgen_is_object = function(arg0) {
278281
const val = getObject(arg0);
279282
const ret = typeof val === "object" && val !== null;
@@ -303,9 +306,6 @@ function __wbg_get_imports() {
303306
const ret = +getObject(arg0);
304307
return ret;
305308
};
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,6 +5,18 @@ 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+
}
820
var WASM_VECTOR_LEN = 0;
921
var cachedUint8Memory0 = null;
1022
function getUint8Memory0() {
@@ -76,7 +88,6 @@ function getStringFromWasm0(ptr, len) {
7688
ptr = ptr >>> 0;
7789
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
7890
}
79-
var heap_next = heap.length;
8091
function addHeapObject(obj) {
8192
if (heap_next === heap.length)
8293
heap.push(heap.length + 1);
@@ -85,17 +96,6 @@ function addHeapObject(obj) {
8596
heap[idx] = obj;
8697
return idx;
8798
}
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,6 +233,14 @@ 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+
};
236244
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
237245
const obj = getObject(arg1);
238246
const ret = typeof obj === "string" ? obj : void 0;
@@ -241,11 +249,6 @@ function __wbg_get_imports() {
241249
getInt32Memory0()[arg0 / 4 + 1] = len1;
242250
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
243251
};
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-
};
249252
imports.wbg.__wbindgen_is_object = function(arg0) {
250253
const val = getObject(arg0);
251254
const ret = typeof val === "object" && val !== null;
@@ -275,9 +278,6 @@ function __wbg_get_imports() {
275278
const ret = +getObject(arg0);
276279
return ret;
277280
};
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;
-4 KB
Binary file not shown.

0 commit comments

Comments
 (0)