Skip to content

Commit 314756e

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

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 getDataViewMemory0() {
126115
}
127116
return cachedDataViewMemory0;
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
function debugString(val) {
130130
const type = typeof val;
131131
if (type == "number" || type == "boolean" || val == null) {
@@ -314,9 +314,6 @@ function __wbg_get_imports() {
314314
const ret = +getObject(arg0);
315315
return ret;
316316
};
317-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
318-
takeObject(arg0);
319-
};
320317
imports.wbg.__wbindgen_boolean_get = function(arg0) {
321318
const v = getObject(arg0);
322319
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
@@ -330,6 +327,9 @@ function __wbg_get_imports() {
330327
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
331328
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
332329
};
330+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
331+
takeObject(arg0);
332+
};
333333
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
334334
const ret = getObject(arg0).length;
335335
return 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 getDataViewMemory0() {
9786
}
9887
return cachedDataViewMemory0;
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
function debugString(val) {
101101
const type = typeof val;
102102
if (type == "number" || type == "boolean" || val == null) {
@@ -285,9 +285,6 @@ function __wbg_get_imports() {
285285
const ret = +getObject(arg0);
286286
return ret;
287287
};
288-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
289-
takeObject(arg0);
290-
};
291288
imports.wbg.__wbindgen_boolean_get = function(arg0) {
292289
const v = getObject(arg0);
293290
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
@@ -301,6 +298,9 @@ function __wbg_get_imports() {
301298
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
302299
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
303300
};
301+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
302+
takeObject(arg0);
303+
};
304304
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
305305
const ret = getObject(arg0).length;
306306
return ret;
675 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)