@@ -33,6 +33,18 @@ heap.push(void 0, null, true, false);
3333function 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+ }
3648var WASM_VECTOR_LEN = 0 ;
3749var cachedUint8Memory0 = null ;
3850function 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 ;
108119function 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- }
127127var cachedFloat64Memory0 = null ;
128128function getFloat64Memory0 ( ) {
129129 if ( cachedFloat64Memory0 === null || cachedFloat64Memory0 . byteLength === 0 ) {
@@ -261,6 +261,14 @@ function __wbg_get_imports() {
261261 const ret = getObject ( arg0 ) === void 0 ;
262262 return ret ;
263263 } ;
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+ } ;
264272 imports . wbg . __wbindgen_string_get = function ( arg0 , arg1 ) {
265273 const obj = getObject ( arg1 ) ;
266274 const ret = typeof obj === "string" ? obj : void 0 ;
@@ -269,20 +277,15 @@ function __wbg_get_imports() {
269277 getInt32Memory0 ( ) [ arg0 / 4 + 1 ] = len1 ;
270278 getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr1 ;
271279 } ;
272- imports . wbg . __wbindgen_boolean_get = function ( arg0 ) {
273- const v = getObject ( arg0 ) ;
274- const ret = typeof v === "boolean" ? v ? 1 : 0 : 2 ;
280+ imports . wbg . __wbindgen_is_object = function ( arg0 ) {
281+ const val = getObject ( arg0 ) ;
282+ const ret = typeof val === "object" && val !== null ;
275283 return ret ;
276284 } ;
277285 imports . wbg . __wbindgen_string_new = function ( arg0 , arg1 ) {
278286 const ret = getStringFromWasm0 ( arg0 , arg1 ) ;
279287 return addHeapObject ( ret ) ;
280288 } ;
281- imports . wbg . __wbindgen_is_object = function ( arg0 ) {
282- const val = getObject ( arg0 ) ;
283- const ret = typeof val === "object" && val !== null ;
284- return ret ;
285- } ;
286289 imports . wbg . __wbindgen_object_clone_ref = function ( arg0 ) {
287290 const ret = getObject ( arg0 ) ;
288291 return addHeapObject ( ret ) ;
@@ -303,9 +306,6 @@ function __wbg_get_imports() {
303306 const ret = + getObject ( arg0 ) ;
304307 return ret ;
305308 } ;
306- imports . wbg . __wbindgen_object_drop_ref = function ( arg0 ) {
307- takeObject ( arg0 ) ;
308- } ;
309309 imports . wbg . __wbg_length_1d25fa9e4ac21ce7 = function ( arg0 ) {
310310 const ret = getObject ( arg0 ) . length ;
311311 return ret ;
0 commit comments