diff --git a/apps/gipy/pkg/gps.js b/apps/gipy/pkg/gps.js index 05a00e94b..0f8b74804 100644 --- a/apps/gipy/pkg/gps.js +++ b/apps/gipy/pkg/gps.js @@ -7,20 +7,6 @@ heap.push(undefined, null, true, false); function getObject(idx) { return heap[idx]; } -let heap_next = heap.length; - -function dropObject(idx) { - if (idx < 36) return; - heap[idx] = heap_next; - heap_next = idx; -} - -function takeObject(idx) { - const ret = getObject(idx); - dropObject(idx); - return ret; -} - let WASM_VECTOR_LEN = 0; let cachedUint8Memory0 = new Uint8Array(); @@ -98,6 +84,20 @@ function getInt32Memory0() { return cachedInt32Memory0; } +let heap_next = heap.length; + +function dropObject(idx) { + if (idx < 36) return; + heap[idx] = heap_next; + heap_next = idx; +} + +function takeObject(idx) { + const ret = getObject(idx); + dropObject(idx); + return ret; +} + function addHeapObject(obj) { if (heap_next === heap.length) heap.push(heap.length + 1); const idx = heap_next; @@ -453,9 +453,6 @@ function getImports() { imports.wbg.__wbg_log_d04343b58be82b0f = function(arg0, arg1) { console.log(getStringFromWasm0(arg0, arg1)); }; - imports.wbg.__wbindgen_object_drop_ref = function(arg0) { - takeObject(arg0); - }; imports.wbg.__wbindgen_string_get = function(arg0, arg1) { const obj = getObject(arg1); const ret = typeof(obj) === 'string' ? obj : undefined; @@ -464,6 +461,9 @@ function getImports() { getInt32Memory0()[arg0 / 4 + 1] = len0; getInt32Memory0()[arg0 / 4 + 0] = ptr0; }; + imports.wbg.__wbindgen_object_drop_ref = function(arg0) { + takeObject(arg0); + }; imports.wbg.__wbindgen_object_clone_ref = function(arg0) { const ret = getObject(arg0); return addHeapObject(ret); @@ -695,8 +695,8 @@ function getImports() { const ret = wasm.memory; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper2355 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 292, __wbg_adapter_24); + imports.wbg.__wbindgen_closure_wrapper2356 = function(arg0, arg1, arg2) { + const ret = makeMutClosure(arg0, arg1, 293, __wbg_adapter_24); return addHeapObject(ret); }; diff --git a/apps/gipy/pkg/gps_bg.wasm b/apps/gipy/pkg/gps_bg.wasm index a5c19613c..c9e212a13 100644 Binary files a/apps/gipy/pkg/gps_bg.wasm and b/apps/gipy/pkg/gps_bg.wasm differ diff --git a/apps/gipy/pkg/package.json b/apps/gipy/pkg/package.json index 6778e3c09..0f6ae6a75 100644 --- a/apps/gipy/pkg/package.json +++ b/apps/gipy/pkg/package.json @@ -8,7 +8,5 @@ ], "module": "gps.js", "types": "gps.d.ts", - "sideEffects": [ - "./snippets/*" - ] + "sideEffects": false } \ No newline at end of file