@swc/wasm 1.3.34 → 1.3.36
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 +48 -48
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -7,10 +7,10 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
|
|
|
7
7
|
|
|
8
8
|
cachedTextDecoder.decode();
|
|
9
9
|
|
|
10
|
-
let cachedUint8Memory0 =
|
|
10
|
+
let cachedUint8Memory0 = null;
|
|
11
11
|
|
|
12
12
|
function getUint8Memory0() {
|
|
13
|
-
if (cachedUint8Memory0.byteLength === 0) {
|
|
13
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
14
14
|
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
15
15
|
}
|
|
16
16
|
return cachedUint8Memory0;
|
|
@@ -20,7 +20,7 @@ function getStringFromWasm0(ptr, len) {
|
|
|
20
20
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
const heap = new Array(
|
|
23
|
+
const heap = new Array(128).fill(undefined);
|
|
24
24
|
|
|
25
25
|
heap.push(undefined, null, true, false);
|
|
26
26
|
|
|
@@ -38,7 +38,7 @@ function addHeapObject(obj) {
|
|
|
38
38
|
function getObject(idx) { return heap[idx]; }
|
|
39
39
|
|
|
40
40
|
function dropObject(idx) {
|
|
41
|
-
if (idx <
|
|
41
|
+
if (idx < 132) return;
|
|
42
42
|
heap[idx] = heap_next;
|
|
43
43
|
heap_next = idx;
|
|
44
44
|
}
|
|
@@ -108,28 +108,28 @@ function isLikeNone(x) {
|
|
|
108
108
|
return x === undefined || x === null;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
let cachedInt32Memory0 =
|
|
111
|
+
let cachedInt32Memory0 = null;
|
|
112
112
|
|
|
113
113
|
function getInt32Memory0() {
|
|
114
|
-
if (cachedInt32Memory0.byteLength === 0) {
|
|
114
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
115
115
|
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
116
116
|
}
|
|
117
117
|
return cachedInt32Memory0;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
let cachedBigInt64Memory0 =
|
|
120
|
+
let cachedBigInt64Memory0 = null;
|
|
121
121
|
|
|
122
122
|
function getBigInt64Memory0() {
|
|
123
|
-
if (cachedBigInt64Memory0.byteLength === 0) {
|
|
123
|
+
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
124
124
|
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
125
125
|
}
|
|
126
126
|
return cachedBigInt64Memory0;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
let cachedFloat64Memory0 =
|
|
129
|
+
let cachedFloat64Memory0 = null;
|
|
130
130
|
|
|
131
131
|
function getFloat64Memory0() {
|
|
132
|
-
if (cachedFloat64Memory0.byteLength === 0) {
|
|
132
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
133
133
|
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
134
134
|
}
|
|
135
135
|
return cachedFloat64Memory0;
|
|
@@ -396,7 +396,7 @@ function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
|
|
|
396
396
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
module.exports.
|
|
399
|
+
module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
400
400
|
const ret = new Object();
|
|
401
401
|
return addHeapObject(ret);
|
|
402
402
|
};
|
|
@@ -419,12 +419,12 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
419
419
|
return addHeapObject(ret);
|
|
420
420
|
};
|
|
421
421
|
|
|
422
|
-
module.exports.
|
|
422
|
+
module.exports.__wbg_new_b525de17f44a8943 = function() {
|
|
423
423
|
const ret = new Array();
|
|
424
424
|
return addHeapObject(ret);
|
|
425
425
|
};
|
|
426
426
|
|
|
427
|
-
module.exports.
|
|
427
|
+
module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
|
|
428
428
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
429
429
|
};
|
|
430
430
|
|
|
@@ -458,17 +458,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
458
458
|
return ret;
|
|
459
459
|
};
|
|
460
460
|
|
|
461
|
-
module.exports.
|
|
461
|
+
module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
|
|
462
462
|
const ret = Object.entries(getObject(arg0));
|
|
463
463
|
return addHeapObject(ret);
|
|
464
464
|
};
|
|
465
465
|
|
|
466
|
-
module.exports.
|
|
466
|
+
module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
467
467
|
const ret = getObject(arg0).length;
|
|
468
468
|
return ret;
|
|
469
469
|
};
|
|
470
470
|
|
|
471
|
-
module.exports.
|
|
471
|
+
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
472
472
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
473
473
|
return addHeapObject(ret);
|
|
474
474
|
};
|
|
@@ -488,7 +488,7 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
|
488
488
|
return ret;
|
|
489
489
|
};
|
|
490
490
|
|
|
491
|
-
module.exports.
|
|
491
|
+
module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
|
|
492
492
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
493
493
|
return addHeapObject(ret);
|
|
494
494
|
};
|
|
@@ -507,7 +507,7 @@ module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
|
507
507
|
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
508
508
|
const v = getObject(arg1);
|
|
509
509
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
510
|
-
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ?
|
|
510
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
511
511
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
512
512
|
};
|
|
513
513
|
|
|
@@ -528,17 +528,17 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
528
528
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
-
module.exports.
|
|
531
|
+
module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
|
|
532
532
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
533
533
|
return ret;
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
-
module.exports.
|
|
536
|
+
module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
|
|
537
537
|
const ret = Array.isArray(getObject(arg0));
|
|
538
538
|
return ret;
|
|
539
539
|
};
|
|
540
540
|
|
|
541
|
-
module.exports.
|
|
541
|
+
module.exports.__wbg_iterator_55f114446221aa5a = function() {
|
|
542
542
|
const ret = Symbol.iterator;
|
|
543
543
|
return addHeapObject(ret);
|
|
544
544
|
};
|
|
@@ -548,12 +548,12 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
548
548
|
return addHeapObject(ret);
|
|
549
549
|
};
|
|
550
550
|
|
|
551
|
-
module.exports.
|
|
551
|
+
module.exports.__wbg_new_f841cc6f2098f4b5 = function() {
|
|
552
552
|
const ret = new Map();
|
|
553
553
|
return addHeapObject(ret);
|
|
554
554
|
};
|
|
555
555
|
|
|
556
|
-
module.exports.
|
|
556
|
+
module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
557
557
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
558
558
|
return addHeapObject(ret);
|
|
559
559
|
}, arguments) };
|
|
@@ -563,22 +563,22 @@ module.exports.__wbindgen_is_null = function(arg0) {
|
|
|
563
563
|
return ret;
|
|
564
564
|
};
|
|
565
565
|
|
|
566
|
-
module.exports.
|
|
566
|
+
module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
|
|
567
567
|
const ret = getObject(arg0).next();
|
|
568
568
|
return addHeapObject(ret);
|
|
569
569
|
}, arguments) };
|
|
570
570
|
|
|
571
|
-
module.exports.
|
|
571
|
+
module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
|
|
572
572
|
const ret = getObject(arg0).done;
|
|
573
573
|
return ret;
|
|
574
574
|
};
|
|
575
575
|
|
|
576
|
-
module.exports.
|
|
576
|
+
module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
577
577
|
const ret = getObject(arg0).value;
|
|
578
578
|
return addHeapObject(ret);
|
|
579
579
|
};
|
|
580
580
|
|
|
581
|
-
module.exports.
|
|
581
|
+
module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
582
582
|
try {
|
|
583
583
|
var state0 = {a: arg0, b: arg1};
|
|
584
584
|
var cb0 = (arg0, arg1) => {
|
|
@@ -597,43 +597,43 @@ module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
|
|
|
597
597
|
}
|
|
598
598
|
};
|
|
599
599
|
|
|
600
|
-
module.exports.
|
|
600
|
+
module.exports.__wbg_new0_25059e40b1c02766 = function() {
|
|
601
601
|
const ret = new Date();
|
|
602
602
|
return addHeapObject(ret);
|
|
603
603
|
};
|
|
604
604
|
|
|
605
|
-
module.exports.
|
|
605
|
+
module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
|
|
606
606
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
607
607
|
return ret;
|
|
608
608
|
};
|
|
609
609
|
|
|
610
|
-
module.exports.
|
|
610
|
+
module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
|
|
611
611
|
const ret = self.self;
|
|
612
612
|
return addHeapObject(ret);
|
|
613
613
|
}, arguments) };
|
|
614
614
|
|
|
615
|
-
module.exports.
|
|
615
|
+
module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
|
|
616
616
|
const ret = window.window;
|
|
617
617
|
return addHeapObject(ret);
|
|
618
618
|
}, arguments) };
|
|
619
619
|
|
|
620
|
-
module.exports.
|
|
620
|
+
module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
|
|
621
621
|
const ret = globalThis.globalThis;
|
|
622
622
|
return addHeapObject(ret);
|
|
623
623
|
}, arguments) };
|
|
624
624
|
|
|
625
|
-
module.exports.
|
|
625
|
+
module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
|
|
626
626
|
const ret = global.global;
|
|
627
627
|
return addHeapObject(ret);
|
|
628
628
|
}, arguments) };
|
|
629
629
|
|
|
630
|
-
module.exports.
|
|
630
|
+
module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
|
|
631
631
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
632
632
|
const ret = new Function(v0);
|
|
633
633
|
return addHeapObject(ret);
|
|
634
634
|
};
|
|
635
635
|
|
|
636
|
-
module.exports.
|
|
636
|
+
module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
|
|
637
637
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
638
638
|
return addHeapObject(ret);
|
|
639
639
|
}, arguments) };
|
|
@@ -643,12 +643,12 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
|
643
643
|
return addHeapObject(ret);
|
|
644
644
|
};
|
|
645
645
|
|
|
646
|
-
module.exports.
|
|
646
|
+
module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
|
|
647
647
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
648
648
|
return addHeapObject(ret);
|
|
649
649
|
}, arguments) };
|
|
650
650
|
|
|
651
|
-
module.exports.
|
|
651
|
+
module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
|
|
652
652
|
const ret = getObject(arg0).getTime();
|
|
653
653
|
return ret;
|
|
654
654
|
};
|
|
@@ -677,12 +677,12 @@ module.exports.__wbindgen_is_function = function(arg0) {
|
|
|
677
677
|
return ret;
|
|
678
678
|
};
|
|
679
679
|
|
|
680
|
-
module.exports.
|
|
680
|
+
module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
|
|
681
681
|
const ret = getObject(arg0).next;
|
|
682
682
|
return addHeapObject(ret);
|
|
683
683
|
};
|
|
684
684
|
|
|
685
|
-
module.exports.
|
|
685
|
+
module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
|
|
686
686
|
const ret = getObject(arg0).length;
|
|
687
687
|
return ret;
|
|
688
688
|
};
|
|
@@ -692,21 +692,21 @@ module.exports.__wbindgen_memory = function() {
|
|
|
692
692
|
return addHeapObject(ret);
|
|
693
693
|
};
|
|
694
694
|
|
|
695
|
-
module.exports.
|
|
695
|
+
module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
|
|
696
696
|
const ret = getObject(arg0).buffer;
|
|
697
697
|
return addHeapObject(ret);
|
|
698
698
|
};
|
|
699
699
|
|
|
700
|
-
module.exports.
|
|
700
|
+
module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
|
|
701
701
|
const ret = new Uint8Array(getObject(arg0));
|
|
702
702
|
return addHeapObject(ret);
|
|
703
703
|
};
|
|
704
704
|
|
|
705
|
-
module.exports.
|
|
705
|
+
module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
|
|
706
706
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
707
707
|
};
|
|
708
708
|
|
|
709
|
-
module.exports.
|
|
709
|
+
module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
|
|
710
710
|
let result;
|
|
711
711
|
try {
|
|
712
712
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -717,7 +717,7 @@ module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
|
|
|
717
717
|
return ret;
|
|
718
718
|
};
|
|
719
719
|
|
|
720
|
-
module.exports.
|
|
720
|
+
module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
|
|
721
721
|
let result;
|
|
722
722
|
try {
|
|
723
723
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -748,7 +748,7 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
748
748
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
749
749
|
};
|
|
750
750
|
|
|
751
|
-
module.exports.
|
|
751
|
+
module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
|
|
752
752
|
const ret = Promise.resolve(getObject(arg0));
|
|
753
753
|
return addHeapObject(ret);
|
|
754
754
|
};
|
|
@@ -763,13 +763,13 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
763
763
|
return ret;
|
|
764
764
|
};
|
|
765
765
|
|
|
766
|
-
module.exports.
|
|
766
|
+
module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
|
|
767
767
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
768
768
|
return addHeapObject(ret);
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
module.exports.
|
|
772
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
771
|
+
module.exports.__wbindgen_closure_wrapper19025 = function(arg0, arg1, arg2) {
|
|
772
|
+
const ret = makeMutClosure(arg0, arg1, 236, __wbg_adapter_50);
|
|
773
773
|
return addHeapObject(ret);
|
|
774
774
|
};
|
|
775
775
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|