Skip to content

Commit 1ed7a42

Browse files
committed
chore(javascript): Update bundled WASM module
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent fc62385 commit 1ed7a42

File tree

4 files changed

+40
-40
lines changed

4 files changed

+40
-40
lines changed

bindings/javascript/wasm/index.js

+19-19
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ function addHeapObject(obj) {
6060
heap[idx] = obj;
6161
return idx;
6262
}
63+
function dropObject(idx) {
64+
if (idx < 132)
65+
return;
66+
heap[idx] = heap_next;
67+
heap_next = idx;
68+
}
69+
function takeObject(idx) {
70+
const ret = getObject(idx);
71+
dropObject(idx);
72+
return ret;
73+
}
6374
var WASM_VECTOR_LEN = 0;
6475
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
6576
throw Error("TextEncoder not available");
@@ -115,17 +126,6 @@ function getInt32Memory0() {
115126
}
116127
return cachedInt32Memory0;
117128
}
118-
function dropObject(idx) {
119-
if (idx < 132)
120-
return;
121-
heap[idx] = heap_next;
122-
heap_next = idx;
123-
}
124-
function takeObject(idx) {
125-
const ret = getObject(idx);
126-
dropObject(idx);
127-
return ret;
128-
}
129129
var cachedFloat64Memory0 = null;
130130
function getFloat64Memory0() {
131131
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
@@ -321,6 +321,14 @@ function __wbg_get_imports() {
321321
const ret = +getObject(arg0);
322322
return ret;
323323
};
324+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
325+
takeObject(arg0);
326+
};
327+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
328+
const v = getObject(arg0);
329+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
330+
return ret;
331+
};
324332
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
325333
const obj = getObject(arg1);
326334
const ret = typeof obj === "string" ? obj : void 0;
@@ -329,11 +337,6 @@ function __wbg_get_imports() {
329337
getInt32Memory0()[arg0 / 4 + 1] = len1;
330338
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
331339
};
332-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
333-
const v = getObject(arg0);
334-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
335-
return ret;
336-
};
337340
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
338341
const ret = getObject(arg0).length;
339342
return ret;
@@ -353,9 +356,6 @@ function __wbg_get_imports() {
353356
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
354357
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
355358
};
356-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
357-
takeObject(arg0);
358-
};
359359
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
360360
const ret = new Error(getStringFromWasm0(arg0, arg1));
361361
return addHeapObject(ret);

bindings/javascript/wasm/index.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/javascript/wasm/index.mjs

+19-19
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ function addHeapObject(obj) {
3131
heap[idx] = obj;
3232
return idx;
3333
}
34+
function dropObject(idx) {
35+
if (idx < 132)
36+
return;
37+
heap[idx] = heap_next;
38+
heap_next = idx;
39+
}
40+
function takeObject(idx) {
41+
const ret = getObject(idx);
42+
dropObject(idx);
43+
return ret;
44+
}
3445
var WASM_VECTOR_LEN = 0;
3546
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
3647
throw Error("TextEncoder not available");
@@ -86,17 +97,6 @@ function getInt32Memory0() {
8697
}
8798
return cachedInt32Memory0;
8899
}
89-
function dropObject(idx) {
90-
if (idx < 132)
91-
return;
92-
heap[idx] = heap_next;
93-
heap_next = idx;
94-
}
95-
function takeObject(idx) {
96-
const ret = getObject(idx);
97-
dropObject(idx);
98-
return ret;
99-
}
100100
var cachedFloat64Memory0 = null;
101101
function getFloat64Memory0() {
102102
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
@@ -292,6 +292,14 @@ function __wbg_get_imports() {
292292
const ret = +getObject(arg0);
293293
return ret;
294294
};
295+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
296+
takeObject(arg0);
297+
};
298+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
299+
const v = getObject(arg0);
300+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
301+
return ret;
302+
};
295303
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
296304
const obj = getObject(arg1);
297305
const ret = typeof obj === "string" ? obj : void 0;
@@ -300,11 +308,6 @@ function __wbg_get_imports() {
300308
getInt32Memory0()[arg0 / 4 + 1] = len1;
301309
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
302310
};
303-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
304-
const v = getObject(arg0);
305-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
306-
return ret;
307-
};
308311
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
309312
const ret = getObject(arg0).length;
310313
return ret;
@@ -324,9 +327,6 @@ function __wbg_get_imports() {
324327
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
325328
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
326329
};
327-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
328-
takeObject(arg0);
329-
};
330330
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
331331
const ret = new Error(getStringFromWasm0(arg0, arg1));
332332
return addHeapObject(ret);
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)