@swc/wasm-web 1.2.127 → 1.2.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/wasm.js +19 -19
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -34,18 +34,6 @@ function addHeapObject(obj) {
|
|
|
34
34
|
|
|
35
35
|
function getObject(idx) { return heap[idx]; }
|
|
36
36
|
|
|
37
|
-
function dropObject(idx) {
|
|
38
|
-
if (idx < 36) return;
|
|
39
|
-
heap[idx] = heap_next;
|
|
40
|
-
heap_next = idx;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function takeObject(idx) {
|
|
44
|
-
const ret = getObject(idx);
|
|
45
|
-
dropObject(idx);
|
|
46
|
-
return ret;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
37
|
let WASM_VECTOR_LEN = 0;
|
|
50
38
|
|
|
51
39
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -109,6 +97,18 @@ function getInt32Memory0() {
|
|
|
109
97
|
return cachegetInt32Memory0;
|
|
110
98
|
}
|
|
111
99
|
|
|
100
|
+
function dropObject(idx) {
|
|
101
|
+
if (idx < 36) return;
|
|
102
|
+
heap[idx] = heap_next;
|
|
103
|
+
heap_next = idx;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function takeObject(idx) {
|
|
107
|
+
const ret = getObject(idx);
|
|
108
|
+
dropObject(idx);
|
|
109
|
+
return ret;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
112
|
function isLikeNone(x) {
|
|
113
113
|
return x === undefined || x === null;
|
|
114
114
|
}
|
|
@@ -215,13 +215,10 @@ async function init(input) {
|
|
|
215
215
|
}
|
|
216
216
|
const imports = {};
|
|
217
217
|
imports.wbg = {};
|
|
218
|
-
imports.wbg.
|
|
219
|
-
var ret = getStringFromWasm0(arg0, arg1);
|
|
218
|
+
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
219
|
+
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
220
220
|
return addHeapObject(ret);
|
|
221
221
|
};
|
|
222
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
223
|
-
takeObject(arg0);
|
|
224
|
-
};
|
|
225
222
|
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
226
223
|
const obj = getObject(arg1);
|
|
227
224
|
var ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -230,8 +227,11 @@ async function init(input) {
|
|
|
230
227
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
231
228
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
232
229
|
};
|
|
233
|
-
imports.wbg.
|
|
234
|
-
|
|
230
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
231
|
+
takeObject(arg0);
|
|
232
|
+
};
|
|
233
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
234
|
+
var ret = getStringFromWasm0(arg0, arg1);
|
|
235
235
|
return addHeapObject(ret);
|
|
236
236
|
};
|
|
237
237
|
imports.wbg.__wbg_new0_fd3a3a290b25cdac = function() {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|