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