@swc/wasm-web 1.2.131 → 1.2.132
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,6 +34,18 @@ 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
|
+
|
|
37
49
|
let WASM_VECTOR_LEN = 0;
|
|
38
50
|
|
|
39
51
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -97,18 +109,6 @@ function getInt32Memory0() {
|
|
|
97
109
|
return cachegetInt32Memory0;
|
|
98
110
|
}
|
|
99
111
|
|
|
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,10 +215,13 @@ async function init(input) {
|
|
|
215
215
|
}
|
|
216
216
|
const imports = {};
|
|
217
217
|
imports.wbg = {};
|
|
218
|
-
imports.wbg.
|
|
219
|
-
var ret =
|
|
218
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
219
|
+
var ret = getStringFromWasm0(arg0, arg1);
|
|
220
220
|
return addHeapObject(ret);
|
|
221
221
|
};
|
|
222
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
223
|
+
takeObject(arg0);
|
|
224
|
+
};
|
|
222
225
|
imports.wbg.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
223
226
|
const obj = getObject(arg1);
|
|
224
227
|
var ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -227,11 +230,8 @@ async function init(input) {
|
|
|
227
230
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
228
231
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
229
232
|
};
|
|
230
|
-
imports.wbg.
|
|
231
|
-
|
|
232
|
-
};
|
|
233
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
234
|
-
var ret = getStringFromWasm0(arg0, arg1);
|
|
233
|
+
imports.wbg.__wbindgen_json_parse = function(arg0, arg1) {
|
|
234
|
+
var ret = JSON.parse(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
|