Skip to content

Commit ee538f2

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

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
@@ -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,10 +261,8 @@ function __wbg_get_imports() {
261261
const ret = getObject(arg0) === void 0;
262262
return ret;
263263
};
264-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
265-
const v = getObject(arg0);
266-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
267-
return ret;
264+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
265+
takeObject(arg0);
268266
};
269267
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
270268
const obj = getObject(arg1);
@@ -274,6 +272,11 @@ function __wbg_get_imports() {
274272
getInt32Memory0()[arg0 / 4 + 1] = len1;
275273
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
276274
};
275+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
276+
const v = getObject(arg0);
277+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
278+
return ret;
279+
};
277280
imports.wbg.__wbindgen_is_object = function(arg0) {
278281
const val = getObject(arg0);
279282
const ret = typeof val === "object" && val !== null;
@@ -322,9 +325,6 @@ function __wbg_get_imports() {
322325
imports.wbg.__wbg_set_2357bf09366ee480 = function(arg0, arg1, arg2) {
323326
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
324327
};
325-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
326-
takeObject(arg0);
327-
};
328328
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
329329
const ret = new Error(getStringFromWasm0(arg0, arg1));
330330
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
@@ -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,10 +233,8 @@ function __wbg_get_imports() {
233233
const ret = getObject(arg0) === void 0;
234234
return ret;
235235
};
236-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
237-
const v = getObject(arg0);
238-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
239-
return ret;
236+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
237+
takeObject(arg0);
240238
};
241239
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
242240
const obj = getObject(arg1);
@@ -246,6 +244,11 @@ function __wbg_get_imports() {
246244
getInt32Memory0()[arg0 / 4 + 1] = len1;
247245
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
248246
};
247+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
248+
const v = getObject(arg0);
249+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
250+
return ret;
251+
};
249252
imports.wbg.__wbindgen_is_object = function(arg0) {
250253
const val = getObject(arg0);
251254
const ret = typeof val === "object" && val !== null;
@@ -294,9 +297,6 @@ function __wbg_get_imports() {
294297
imports.wbg.__wbg_set_2357bf09366ee480 = function(arg0, arg1, arg2) {
295298
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
296299
};
297-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
298-
takeObject(arg0);
299-
};
300300
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
301301
const ret = new Error(getStringFromWasm0(arg0, arg1));
302302
return addHeapObject(ret);
1.39 KB
Binary file not shown.

0 commit comments

Comments
 (0)