@swc/wasm 1.2.244 → 1.2.247
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 +29 -29
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -87,6 +87,10 @@ 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
|
+
|
|
90
94
|
let cachedInt32Memory0 = new Int32Array();
|
|
91
95
|
|
|
92
96
|
function getInt32Memory0() {
|
|
@@ -96,10 +100,6 @@ function getInt32Memory0() {
|
|
|
96
100
|
return cachedInt32Memory0;
|
|
97
101
|
}
|
|
98
102
|
|
|
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,17 +283,22 @@ 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.__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) };
|
|
301
|
+
|
|
297
302
|
module.exports.__wbindgen_is_null = function(arg0) {
|
|
298
303
|
const ret = getObject(arg0) === null;
|
|
299
304
|
return ret;
|
|
@@ -304,39 +309,34 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
|
304
309
|
return ret;
|
|
305
310
|
};
|
|
306
311
|
|
|
307
|
-
module.exports.
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
311
|
-
const len0 = WASM_VECTOR_LEN;
|
|
312
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
313
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
312
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
313
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
314
|
+
return ret;
|
|
314
315
|
};
|
|
315
316
|
|
|
316
317
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
317
318
|
const obj = getObject(arg1);
|
|
318
319
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
319
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.
|
|
320
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
320
321
|
var len0 = WASM_VECTOR_LEN;
|
|
321
322
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
322
323
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
323
324
|
};
|
|
324
325
|
|
|
326
|
+
module.exports.__wbindgen_json_serialize = function(arg0, arg1) {
|
|
327
|
+
const obj = getObject(arg1);
|
|
328
|
+
const ret = JSON.stringify(obj === undefined ? null : obj);
|
|
329
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
330
|
+
const len0 = WASM_VECTOR_LEN;
|
|
331
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
332
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
333
|
+
};
|
|
334
|
+
|
|
325
335
|
module.exports.__wbindgen_json_parse = function(arg0, arg1) {
|
|
326
336
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
327
337
|
return addHeapObject(ret);
|
|
328
338
|
};
|
|
329
339
|
|
|
330
|
-
module.exports.__wbindgen_is_string = function(arg0) {
|
|
331
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
332
|
-
return ret;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
module.exports.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
336
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
337
|
-
return addHeapObject(ret);
|
|
338
|
-
}, arguments) };
|
|
339
|
-
|
|
340
340
|
module.exports.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
|
341
341
|
try {
|
|
342
342
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -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,8 +419,8 @@ module.exports.__wbg_then_18da6e5453572fc8 = function(arg0, arg1) {
|
|
|
419
419
|
return addHeapObject(ret);
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
module.exports.
|
|
423
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
422
|
+
module.exports.__wbindgen_closure_wrapper14777 = function(arg0, arg1, arg2) {
|
|
423
|
+
const ret = makeMutClosure(arg0, arg1, 162, __wbg_adapter_22);
|
|
424
424
|
return addHeapObject(ret);
|
|
425
425
|
};
|
|
426
426
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|