@swc/wasm 1.2.127 → 1.2.131
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 +20 -20
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -36,18 +36,6 @@ function addHeapObject(obj) {
|
|
|
36
36
|
|
|
37
37
|
function getObject(idx) { return heap[idx]; }
|
|
38
38
|
|
|
39
|
-
function dropObject(idx) {
|
|
40
|
-
if (idx < 36) return;
|
|
41
|
-
heap[idx] = heap_next;
|
|
42
|
-
heap_next = idx;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function takeObject(idx) {
|
|
46
|
-
const ret = getObject(idx);
|
|
47
|
-
dropObject(idx);
|
|
48
|
-
return ret;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
39
|
let WASM_VECTOR_LEN = 0;
|
|
52
40
|
|
|
53
41
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -111,6 +99,18 @@ function getInt32Memory0() {
|
|
|
111
99
|
return cachegetInt32Memory0;
|
|
112
100
|
}
|
|
113
101
|
|
|
102
|
+
function dropObject(idx) {
|
|
103
|
+
if (idx < 36) return;
|
|
104
|
+
heap[idx] = heap_next;
|
|
105
|
+
heap_next = idx;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function takeObject(idx) {
|
|
109
|
+
const ret = getObject(idx);
|
|
110
|
+
dropObject(idx);
|
|
111
|
+
return ret;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
114
|
function isLikeNone(x) {
|
|
115
115
|
return x === undefined || x === null;
|
|
116
116
|
}
|
|
@@ -180,15 +180,11 @@ function handleError(f, args) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
module.exports.
|
|
184
|
-
var ret = getStringFromWasm0(arg0, arg1);
|
|
183
|
+
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
184
|
+
var ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
185
185
|
return addHeapObject(ret);
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
189
|
-
takeObject(arg0);
|
|
190
|
-
};
|
|
191
|
-
|
|
192
188
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
193
189
|
const obj = getObject(arg1);
|
|
194
190
|
var ret = JSON.stringify(obj === undefined ? null : obj);
|
|
@@ -198,8 +194,12 @@ module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
|
198
194
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
199
195
|
};
|
|
200
196
|
|
|
201
|
-
module.exports.
|
|
202
|
-
|
|
197
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
198
|
+
takeObject(arg0);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
202
|
+
var ret = getStringFromWasm0(arg0, arg1);
|
|
203
203
|
return addHeapObject(ret);
|
|
204
204
|
};
|
|
205
205
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|