@@ -33,6 +33,18 @@ heap.push(void 0, null, true, false);
33
33
function getObject ( idx ) {
34
34
return heap [ idx ] ;
35
35
}
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
+ }
36
48
var WASM_VECTOR_LEN = 0 ;
37
49
var cachedUint8Memory0 = null ;
38
50
function getUint8Memory0 ( ) {
@@ -104,7 +116,6 @@ function getStringFromWasm0(ptr, len) {
104
116
ptr = ptr >>> 0 ;
105
117
return cachedTextDecoder . decode ( getUint8Memory0 ( ) . subarray ( ptr , ptr + len ) ) ;
106
118
}
107
- var heap_next = heap . length ;
108
119
function addHeapObject ( obj ) {
109
120
if ( heap_next === heap . length )
110
121
heap . push ( heap . length + 1 ) ;
@@ -113,17 +124,6 @@ function addHeapObject(obj) {
113
124
heap [ idx ] = obj ;
114
125
return idx ;
115
126
}
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
- }
127
127
var cachedFloat64Memory0 = null ;
128
128
function getFloat64Memory0 ( ) {
129
129
if ( cachedFloat64Memory0 === null || cachedFloat64Memory0 . byteLength === 0 ) {
@@ -261,10 +261,8 @@ function __wbg_get_imports() {
261
261
const ret = getObject ( arg0 ) === void 0 ;
262
262
return ret ;
263
263
} ;
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 ) ;
268
266
} ;
269
267
imports . wbg . __wbindgen_string_get = function ( arg0 , arg1 ) {
270
268
const obj = getObject ( arg1 ) ;
@@ -274,6 +272,11 @@ function __wbg_get_imports() {
274
272
getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len1 ;
275
273
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr1 ;
276
274
} ;
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
+ } ;
277
280
imports . wbg . __wbindgen_is_object = function ( arg0 ) {
278
281
const val = getObject ( arg0 ) ;
279
282
const ret = typeof val === "object" && val !== null ;
@@ -322,9 +325,6 @@ function __wbg_get_imports() {
322
325
imports . wbg . __wbg_set_2357bf09366ee480 = function ( arg0 , arg1 , arg2 ) {
323
326
getObject ( arg0 ) . set ( getObject ( arg1 ) , arg2 >>> 0 ) ;
324
327
} ;
325
- imports . wbg . __wbindgen_object_drop_ref = function ( arg0 ) {
326
- takeObject ( arg0 ) ;
327
- } ;
328
328
imports . wbg . __wbindgen_error_new = function ( arg0 , arg1 ) {
329
329
const ret = new Error ( getStringFromWasm0 ( arg0 , arg1 ) ) ;
330
330
return addHeapObject ( ret ) ;
0 commit comments