Skip to content

Commit 3e5979a

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

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

bindings/javascript/wasm/index.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ 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-
}
7463
var WASM_VECTOR_LEN = 0;
7564
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
7665
throw Error("TextEncoder not available");
@@ -126,6 +115,17 @@ function getInt32Memory0() {
126115
}
127116
return cachedInt32Memory0;
128117
}
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,9 +321,6 @@ 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-
};
327324
imports.wbg.__wbindgen_boolean_get = function(arg0) {
328325
const v = getObject(arg0);
329326
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
@@ -356,6 +353,9 @@ function __wbg_get_imports() {
356353
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
357354
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
358355
};
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

+14-14
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@ 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-
}
4534
var WASM_VECTOR_LEN = 0;
4635
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
4736
throw Error("TextEncoder not available");
@@ -97,6 +86,17 @@ function getInt32Memory0() {
9786
}
9887
return cachedInt32Memory0;
9988
}
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,9 +292,6 @@ 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-
};
298295
imports.wbg.__wbindgen_boolean_get = function(arg0) {
299296
const v = getObject(arg0);
300297
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
@@ -327,6 +324,9 @@ function __wbg_get_imports() {
327324
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
328325
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
329326
};
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);
146 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)