@swc/wasm 1.2.245 → 1.2.246
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 +28 -28
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -87,10 +87,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
87
87
|
return ptr;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
function isLikeNone(x) {
|
|
91
|
-
return x === undefined || x === null;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
90
|
let cachedInt32Memory0 = new Int32Array();
|
|
95
91
|
|
|
96
92
|
function getInt32Memory0() {
|
|
@@ -100,6 +96,10 @@ function getInt32Memory0() {
|
|
|
100
96
|
return cachedInt32Memory0;
|
|
101
97
|
}
|
|
102
98
|
|
|
99
|
+
function isLikeNone(x) {
|
|
100
|
+
return x === undefined || x === null;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
103
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
104
104
|
|
|
105
105
|
cachedTextDecoder.decode();
|
|
@@ -142,7 +142,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
142
142
|
return real;
|
|
143
143
|
}
|
|
144
144
|
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
145
|
-
wasm.
|
|
145
|
+
wasm.__wbindgen_export_3(arg0, arg1, addHeapObject(arg2));
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -283,30 +283,21 @@ function handleError(f, args) {
|
|
|
283
283
|
try {
|
|
284
284
|
return f.apply(this, args);
|
|
285
285
|
} catch (e) {
|
|
286
|
-
wasm.
|
|
286
|
+
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
function __wbg_adapter_45(arg0, arg1, arg2, arg3) {
|
|
290
|
-
wasm.
|
|
290
|
+
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
294
294
|
takeObject(arg0);
|
|
295
295
|
};
|
|
296
296
|
|
|
297
|
-
module.exports.
|
|
298
|
-
const ret =
|
|
299
|
-
return ret;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
303
|
-
const obj = getObject(arg1);
|
|
304
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
305
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
-
var len0 = WASM_VECTOR_LEN;
|
|
307
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
308
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
309
|
-
};
|
|
297
|
+
module.exports.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
298
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
299
|
+
return addHeapObject(ret);
|
|
300
|
+
}, arguments) };
|
|
310
301
|
|
|
311
302
|
module.exports.__wbindgen_is_null = function(arg0) {
|
|
312
303
|
const ret = getObject(arg0) === null;
|
|
@@ -321,21 +312,30 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
321
312
|
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
322
313
|
const obj = getObject(arg1);
|
|
323
314
|
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
324
|
-
const ptr0 = passStringToWasm0(ret, wasm.
|
|
315
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
325
316
|
const len0 = WASM_VECTOR_LEN;
|
|
326
317
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
327
318
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
328
319
|
};
|
|
329
320
|
|
|
321
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
322
|
+
const obj = getObject(arg1);
|
|
323
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
324
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
325
|
+
var len0 = WASM_VECTOR_LEN;
|
|
326
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
327
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
330
|
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
331
331
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
332
332
|
return addHeapObject(ret);
|
|
333
333
|
};
|
|
334
334
|
|
|
335
|
-
module.exports.
|
|
336
|
-
const ret = getObject(arg0)
|
|
337
|
-
return
|
|
338
|
-
}
|
|
335
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
336
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
337
|
+
return ret;
|
|
338
|
+
};
|
|
339
339
|
|
|
340
340
|
module.exports.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
341
341
|
try {
|
|
@@ -383,7 +383,7 @@ module.exports.__wbg_new_693216e109162396 = function() {
|
|
|
383
383
|
|
|
384
384
|
module.exports.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
385
385
|
const ret = getObject(arg1).stack;
|
|
386
|
-
const ptr0 = passStringToWasm0(ret, wasm.
|
|
386
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
387
387
|
const len0 = WASM_VECTOR_LEN;
|
|
388
388
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
389
389
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
@@ -391,7 +391,7 @@ module.exports.__wbg_stack_0ddaca5d1abfb52f = function(arg0, arg1) {
|
|
|
391
391
|
|
|
392
392
|
module.exports.__wbg_error_09919627ac0992f5 = function(arg0, arg1) {
|
|
393
393
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
394
|
-
if (arg0 !== 0) { wasm.
|
|
394
|
+
if (arg0 !== 0) { wasm.__wbindgen_export_4(arg0, arg1); }
|
|
395
395
|
console.error(v0);
|
|
396
396
|
};
|
|
397
397
|
|
|
@@ -419,7 +419,7 @@ module.exports.__wbg_then_18da6e5453572fc8 = function(arg0, arg1) {
|
|
|
419
419
|
return addHeapObject(ret);
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
module.exports.
|
|
422
|
+
module.exports.__wbindgen_closure_wrapper14862 = function(arg0, arg1, arg2) {
|
|
423
423
|
const ret = makeMutClosure(arg0, arg1, 167, __wbg_adapter_22);
|
|
424
424
|
return addHeapObject(ret);
|
|
425
425
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|