@swc/wasm-web 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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "강동윤 <kdy1997.dev@gmail.com>"
5
5
  ],
6
6
  "description": "wasm module for swc",
7
- "version": "1.3.34",
7
+ "version": "1.3.36",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm-web.js CHANGED
@@ -1,14 +1,13 @@
1
-
2
1
  let wasm;
3
2
 
4
3
  const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
5
4
 
6
5
  cachedTextDecoder.decode();
7
6
 
8
- let cachedUint8Memory0 = new Uint8Array();
7
+ let cachedUint8Memory0 = null;
9
8
 
10
9
  function getUint8Memory0() {
11
- if (cachedUint8Memory0.byteLength === 0) {
10
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
12
11
  cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
13
12
  }
14
13
  return cachedUint8Memory0;
@@ -18,7 +17,7 @@ function getStringFromWasm0(ptr, len) {
18
17
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
19
18
  }
20
19
 
21
- const heap = new Array(32).fill(undefined);
20
+ const heap = new Array(128).fill(undefined);
22
21
 
23
22
  heap.push(undefined, null, true, false);
24
23
 
@@ -36,7 +35,7 @@ function addHeapObject(obj) {
36
35
  function getObject(idx) { return heap[idx]; }
37
36
 
38
37
  function dropObject(idx) {
39
- if (idx < 36) return;
38
+ if (idx < 132) return;
40
39
  heap[idx] = heap_next;
41
40
  heap_next = idx;
42
41
  }
@@ -106,28 +105,28 @@ function isLikeNone(x) {
106
105
  return x === undefined || x === null;
107
106
  }
108
107
 
109
- let cachedInt32Memory0 = new Int32Array();
108
+ let cachedInt32Memory0 = null;
110
109
 
111
110
  function getInt32Memory0() {
112
- if (cachedInt32Memory0.byteLength === 0) {
111
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
113
112
  cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
114
113
  }
115
114
  return cachedInt32Memory0;
116
115
  }
117
116
 
118
- let cachedBigInt64Memory0 = new BigInt64Array();
117
+ let cachedBigInt64Memory0 = null;
119
118
 
120
119
  function getBigInt64Memory0() {
121
- if (cachedBigInt64Memory0.byteLength === 0) {
120
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
122
121
  cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
123
122
  }
124
123
  return cachedBigInt64Memory0;
125
124
  }
126
125
 
127
- let cachedFloat64Memory0 = new Float64Array();
126
+ let cachedFloat64Memory0 = null;
128
127
 
129
128
  function getFloat64Memory0() {
130
- if (cachedFloat64Memory0.byteLength === 0) {
129
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
131
130
  cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
132
131
  }
133
132
  return cachedFloat64Memory0;
@@ -428,7 +427,7 @@ async function load(module, imports) {
428
427
  function getImports() {
429
428
  const imports = {};
430
429
  imports.wbg = {};
431
- imports.wbg.__wbg_new_0b9bfdd97583284e = function() {
430
+ imports.wbg.__wbg_new_f9876326328f45ed = function() {
432
431
  const ret = new Object();
433
432
  return addHeapObject(ret);
434
433
  };
@@ -446,11 +445,11 @@ function getImports() {
446
445
  const ret = arg0;
447
446
  return addHeapObject(ret);
448
447
  };
449
- imports.wbg.__wbg_new_1d9a920c6bfc44a8 = function() {
448
+ imports.wbg.__wbg_new_b525de17f44a8943 = function() {
450
449
  const ret = new Array();
451
450
  return addHeapObject(ret);
452
451
  };
453
- imports.wbg.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
452
+ imports.wbg.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
454
453
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
455
454
  };
456
455
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
@@ -478,15 +477,15 @@ function getImports() {
478
477
  const ret = typeof(val) === 'object' && val !== null;
479
478
  return ret;
480
479
  };
481
- imports.wbg.__wbg_entries_65a76a413fc91037 = function(arg0) {
480
+ imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
482
481
  const ret = Object.entries(getObject(arg0));
483
482
  return addHeapObject(ret);
484
483
  };
485
- imports.wbg.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
484
+ imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
486
485
  const ret = getObject(arg0).length;
487
486
  return ret;
488
487
  };
489
- imports.wbg.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
488
+ imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
490
489
  const ret = getObject(arg0)[arg1 >>> 0];
491
490
  return addHeapObject(ret);
492
491
  };
@@ -502,7 +501,7 @@ function getImports() {
502
501
  const ret = getObject(arg0) in getObject(arg1);
503
502
  return ret;
504
503
  };
505
- imports.wbg.__wbg_set_933729cf5b66ac11 = function(arg0, arg1, arg2) {
504
+ imports.wbg.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
506
505
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
507
506
  return addHeapObject(ret);
508
507
  };
@@ -518,7 +517,7 @@ function getImports() {
518
517
  imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
519
518
  const v = getObject(arg1);
520
519
  const ret = typeof(v) === 'bigint' ? v : undefined;
521
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0n : ret;
520
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
522
521
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
523
522
  };
524
523
  imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
@@ -535,15 +534,15 @@ function getImports() {
535
534
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
536
535
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
537
536
  };
538
- imports.wbg.__wbg_isSafeInteger_dfa0593e8d7ac35a = function(arg0) {
537
+ imports.wbg.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
539
538
  const ret = Number.isSafeInteger(getObject(arg0));
540
539
  return ret;
541
540
  };
542
- imports.wbg.__wbg_isArray_27c46c67f498e15d = function(arg0) {
541
+ imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
543
542
  const ret = Array.isArray(getObject(arg0));
544
543
  return ret;
545
544
  };
546
- imports.wbg.__wbg_iterator_6f9d4f28845f426c = function() {
545
+ imports.wbg.__wbg_iterator_55f114446221aa5a = function() {
547
546
  const ret = Symbol.iterator;
548
547
  return addHeapObject(ret);
549
548
  };
@@ -551,11 +550,11 @@ function getImports() {
551
550
  const ret = BigInt.asUintN(64, arg0);
552
551
  return addHeapObject(ret);
553
552
  };
554
- imports.wbg.__wbg_new_268f7b7dd3430798 = function() {
553
+ imports.wbg.__wbg_new_f841cc6f2098f4b5 = function() {
555
554
  const ret = new Map();
556
555
  return addHeapObject(ret);
557
556
  };
558
- imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
557
+ imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
559
558
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
560
559
  return addHeapObject(ret);
561
560
  }, arguments) };
@@ -563,19 +562,19 @@ function getImports() {
563
562
  const ret = getObject(arg0) === null;
564
563
  return ret;
565
564
  };
566
- imports.wbg.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
565
+ imports.wbg.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
567
566
  const ret = getObject(arg0).next();
568
567
  return addHeapObject(ret);
569
568
  }, arguments) };
570
- imports.wbg.__wbg_done_1b73b0672e15f234 = function(arg0) {
569
+ imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) {
571
570
  const ret = getObject(arg0).done;
572
571
  return ret;
573
572
  };
574
- imports.wbg.__wbg_value_1ccc36bc03462d71 = function(arg0) {
573
+ imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
575
574
  const ret = getObject(arg0).value;
576
575
  return addHeapObject(ret);
577
576
  };
578
- imports.wbg.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
577
+ imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
579
578
  try {
580
579
  var state0 = {a: arg0, b: arg1};
581
580
  var cb0 = (arg0, arg1) => {
@@ -593,36 +592,36 @@ function getImports() {
593
592
  state0.a = state0.b = 0;
594
593
  }
595
594
  };
596
- imports.wbg.__wbg_new0_a57059d72c5b7aee = function() {
595
+ imports.wbg.__wbg_new0_25059e40b1c02766 = function() {
597
596
  const ret = new Date();
598
597
  return addHeapObject(ret);
599
598
  };
600
- imports.wbg.__wbg_getTimezoneOffset_89bd4275e1ca8341 = function(arg0) {
599
+ imports.wbg.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
601
600
  const ret = getObject(arg0).getTimezoneOffset();
602
601
  return ret;
603
602
  };
604
- imports.wbg.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {
603
+ imports.wbg.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
605
604
  const ret = self.self;
606
605
  return addHeapObject(ret);
607
606
  }, arguments) };
608
- imports.wbg.__wbg_window_f2557cc78490aceb = function() { return handleError(function () {
607
+ imports.wbg.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
609
608
  const ret = window.window;
610
609
  return addHeapObject(ret);
611
610
  }, arguments) };
612
- imports.wbg.__wbg_globalThis_7f206bda628d5286 = function() { return handleError(function () {
611
+ imports.wbg.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
613
612
  const ret = globalThis.globalThis;
614
613
  return addHeapObject(ret);
615
614
  }, arguments) };
616
- imports.wbg.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(function () {
615
+ imports.wbg.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
617
616
  const ret = global.global;
618
617
  return addHeapObject(ret);
619
618
  }, arguments) };
620
- imports.wbg.__wbg_newnoargs_b5b063fc6c2f0376 = function(arg0, arg1) {
619
+ imports.wbg.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
621
620
  var v0 = getCachedStringFromWasm0(arg0, arg1);
622
621
  const ret = new Function(v0);
623
622
  return addHeapObject(ret);
624
623
  };
625
- imports.wbg.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
624
+ imports.wbg.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
626
625
  const ret = getObject(arg0).call(getObject(arg1));
627
626
  return addHeapObject(ret);
628
627
  }, arguments) };
@@ -630,11 +629,11 @@ function getImports() {
630
629
  const ret = getObject(arg0);
631
630
  return addHeapObject(ret);
632
631
  };
633
- imports.wbg.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
632
+ imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
634
633
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
635
634
  return addHeapObject(ret);
636
635
  }, arguments) };
637
- imports.wbg.__wbg_getTime_cb82adb2556ed13e = function(arg0) {
636
+ imports.wbg.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
638
637
  const ret = getObject(arg0).getTime();
639
638
  return ret;
640
639
  };
@@ -658,11 +657,11 @@ imports.wbg.__wbindgen_is_function = function(arg0) {
658
657
  const ret = typeof(getObject(arg0)) === 'function';
659
658
  return ret;
660
659
  };
661
- imports.wbg.__wbg_next_579e583d33566a86 = function(arg0) {
660
+ imports.wbg.__wbg_next_b7d530c04fd8b217 = function(arg0) {
662
661
  const ret = getObject(arg0).next;
663
662
  return addHeapObject(ret);
664
663
  };
665
- imports.wbg.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
664
+ imports.wbg.__wbg_length_27a2afe8ab42b09f = function(arg0) {
666
665
  const ret = getObject(arg0).length;
667
666
  return ret;
668
667
  };
@@ -670,18 +669,18 @@ imports.wbg.__wbindgen_memory = function() {
670
669
  const ret = wasm.memory;
671
670
  return addHeapObject(ret);
672
671
  };
673
- imports.wbg.__wbg_buffer_3f3d764d4747d564 = function(arg0) {
672
+ imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
674
673
  const ret = getObject(arg0).buffer;
675
674
  return addHeapObject(ret);
676
675
  };
677
- imports.wbg.__wbg_new_8c3f0052272a457a = function(arg0) {
676
+ imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
678
677
  const ret = new Uint8Array(getObject(arg0));
679
678
  return addHeapObject(ret);
680
679
  };
681
- imports.wbg.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
680
+ imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
682
681
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
683
682
  };
684
- imports.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
683
+ imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
685
684
  let result;
686
685
  try {
687
686
  result = getObject(arg0) instanceof Uint8Array;
@@ -691,7 +690,7 @@ imports.wbg.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
691
690
  const ret = result;
692
691
  return ret;
693
692
  };
694
- imports.wbg.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
693
+ imports.wbg.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
695
694
  let result;
696
695
  try {
697
696
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -718,7 +717,7 @@ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
718
717
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
719
718
  throw new Error(getStringFromWasm0(arg0, arg1));
720
719
  };
721
- imports.wbg.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
720
+ imports.wbg.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
722
721
  const ret = Promise.resolve(getObject(arg0));
723
722
  return addHeapObject(ret);
724
723
  };
@@ -731,12 +730,12 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
731
730
  const ret = false;
732
731
  return ret;
733
732
  };
734
- imports.wbg.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
733
+ imports.wbg.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
735
734
  const ret = getObject(arg0).then(getObject(arg1));
736
735
  return addHeapObject(ret);
737
736
  };
738
- imports.wbg.__wbindgen_closure_wrapper18994 = function(arg0, arg1, arg2) {
739
- const ret = makeMutClosure(arg0, arg1, 231, __wbg_adapter_50);
737
+ imports.wbg.__wbindgen_closure_wrapper19025 = function(arg0, arg1, arg2) {
738
+ const ret = makeMutClosure(arg0, arg1, 236, __wbg_adapter_50);
740
739
  return addHeapObject(ret);
741
740
  };
742
741
 
@@ -750,10 +749,10 @@ function initMemory(imports, maybe_memory) {
750
749
  function finalizeInit(instance, module) {
751
750
  wasm = instance.exports;
752
751
  init.__wbindgen_wasm_module = module;
753
- cachedBigInt64Memory0 = new BigInt64Array();
754
- cachedFloat64Memory0 = new Float64Array();
755
- cachedInt32Memory0 = new Int32Array();
756
- cachedUint8Memory0 = new Uint8Array();
752
+ cachedBigInt64Memory0 = null;
753
+ cachedFloat64Memory0 = null;
754
+ cachedInt32Memory0 = null;
755
+ cachedUint8Memory0 = null;
757
756
 
758
757
 
759
758
  return wasm;
package/wasm-web_bg.wasm CHANGED
Binary file