@swc/wasm-web 1.3.61 → 1.3.63

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.61",
7
+ "version": "1.3.63",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm-web.js CHANGED
@@ -1,25 +1,32 @@
1
1
  let wasm;
2
2
 
3
- const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
3
+ const heap = new Array(128).fill(undefined);
4
4
 
5
- cachedTextDecoder.decode();
5
+ heap.push(undefined, null, true, false);
6
6
 
7
- let cachedUint8Memory0 = null;
7
+ function getObject(idx) { return heap[idx]; }
8
8
 
9
- function getUint8Memory0() {
10
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
11
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
12
- }
13
- return cachedUint8Memory0;
9
+ function isLikeNone(x) {
10
+ return x === undefined || x === null;
14
11
  }
15
12
 
16
- function getStringFromWasm0(ptr, len) {
17
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
13
+ let cachedBigInt64Memory0 = null;
14
+
15
+ function getBigInt64Memory0() {
16
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
17
+ cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
18
+ }
19
+ return cachedBigInt64Memory0;
18
20
  }
19
21
 
20
- const heap = new Array(128).fill(undefined);
22
+ let cachedInt32Memory0 = null;
21
23
 
22
- heap.push(undefined, null, true, false);
24
+ function getInt32Memory0() {
25
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
26
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
27
+ }
28
+ return cachedInt32Memory0;
29
+ }
23
30
 
24
31
  let heap_next = heap.length;
25
32
 
@@ -32,8 +39,6 @@ function addHeapObject(obj) {
32
39
  return idx;
33
40
  }
34
41
 
35
- function getObject(idx) { return heap[idx]; }
36
-
37
42
  function dropObject(idx) {
38
43
  if (idx < 132) return;
39
44
  heap[idx] = heap_next;
@@ -46,8 +51,26 @@ function takeObject(idx) {
46
51
  return ret;
47
52
  }
48
53
 
54
+ let cachedFloat64Memory0 = null;
55
+
56
+ function getFloat64Memory0() {
57
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
58
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
59
+ }
60
+ return cachedFloat64Memory0;
61
+ }
62
+
49
63
  let WASM_VECTOR_LEN = 0;
50
64
 
65
+ let cachedUint8Memory0 = null;
66
+
67
+ function getUint8Memory0() {
68
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
69
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
70
+ }
71
+ return cachedUint8Memory0;
72
+ }
73
+
51
74
  const cachedTextEncoder = new TextEncoder('utf-8');
52
75
 
53
76
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -101,35 +124,12 @@ function passStringToWasm0(arg, malloc, realloc) {
101
124
  return ptr;
102
125
  }
103
126
 
104
- function isLikeNone(x) {
105
- return x === undefined || x === null;
106
- }
107
-
108
- let cachedInt32Memory0 = null;
109
-
110
- function getInt32Memory0() {
111
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
112
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
113
- }
114
- return cachedInt32Memory0;
115
- }
116
-
117
- let cachedBigInt64Memory0 = null;
118
-
119
- function getBigInt64Memory0() {
120
- if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
121
- cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
122
- }
123
- return cachedBigInt64Memory0;
124
- }
127
+ const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
125
128
 
126
- let cachedFloat64Memory0 = null;
129
+ cachedTextDecoder.decode();
127
130
 
128
- function getFloat64Memory0() {
129
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
130
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
131
- }
132
- return cachedFloat64Memory0;
131
+ function getStringFromWasm0(ptr, len) {
132
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
133
133
  }
134
134
 
135
135
  function debugString(val) {
@@ -427,80 +427,10 @@ async function load(module, imports) {
427
427
  function getImports() {
428
428
  const imports = {};
429
429
  imports.wbg = {};
430
- imports.wbg.__wbg_new_f9876326328f45ed = function() {
431
- const ret = new Object();
432
- return addHeapObject(ret);
433
- };
434
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
435
- const ret = getStringFromWasm0(arg0, arg1);
436
- return addHeapObject(ret);
437
- };
438
- imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
439
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
440
- };
441
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
442
- takeObject(arg0);
443
- };
444
- imports.wbg.__wbg_new_b525de17f44a8943 = function() {
445
- const ret = new Array();
446
- return addHeapObject(ret);
447
- };
448
- imports.wbg.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
449
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
450
- };
451
- imports.wbg.__wbg_new_f841cc6f2098f4b5 = function() {
452
- const ret = new Map();
453
- return addHeapObject(ret);
454
- };
455
- imports.wbg.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
456
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
457
- return addHeapObject(ret);
458
- };
459
- imports.wbg.__wbindgen_is_string = function(arg0) {
460
- const ret = typeof(getObject(arg0)) === 'string';
461
- return ret;
462
- };
463
430
  imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
464
431
  const ret = getObject(arg0) == getObject(arg1);
465
432
  return ret;
466
433
  };
467
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
468
- const obj = getObject(arg1);
469
- const ret = typeof(obj) === 'string' ? obj : undefined;
470
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
471
- var len0 = WASM_VECTOR_LEN;
472
- getInt32Memory0()[arg0 / 4 + 1] = len0;
473
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
474
- };
475
- imports.wbg.__wbindgen_is_object = function(arg0) {
476
- const val = getObject(arg0);
477
- const ret = typeof(val) === 'object' && val !== null;
478
- return ret;
479
- };
480
- imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
481
- const ret = getObject(arg0)[getObject(arg1)];
482
- return addHeapObject(ret);
483
- };
484
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
485
- const ret = getObject(arg0) === undefined;
486
- return ret;
487
- };
488
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
489
- const ret = getObject(arg0) in getObject(arg1);
490
- return ret;
491
- };
492
- imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
493
- const ret = Object.entries(getObject(arg0));
494
- return addHeapObject(ret);
495
- };
496
- imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
497
- const ret = getObject(arg0).length;
498
- return ret;
499
- };
500
- imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
501
- const ret = getObject(arg0)[arg1 >>> 0];
502
- return addHeapObject(ret);
503
- };
504
434
  imports.wbg.__wbindgen_boolean_get = function(arg0) {
505
435
  const v = getObject(arg0);
506
436
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
@@ -524,6 +454,9 @@ function getImports() {
524
454
  const ret = getObject(arg0) === getObject(arg1);
525
455
  return ret;
526
456
  };
457
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
458
+ takeObject(arg0);
459
+ };
527
460
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
528
461
  const obj = getObject(arg1);
529
462
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -534,14 +467,35 @@ function getImports() {
534
467
  const ret = Number.isSafeInteger(getObject(arg0));
535
468
  return ret;
536
469
  };
470
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
471
+ const obj = getObject(arg1);
472
+ const ret = typeof(obj) === 'string' ? obj : undefined;
473
+ var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
474
+ var len0 = WASM_VECTOR_LEN;
475
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
476
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
477
+ };
537
478
  imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
538
479
  const ret = Array.isArray(getObject(arg0));
539
480
  return ret;
540
481
  };
482
+ imports.wbg.__wbindgen_is_object = function(arg0) {
483
+ const val = getObject(arg0);
484
+ const ret = typeof(val) === 'object' && val !== null;
485
+ return ret;
486
+ };
487
+ imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
488
+ const ret = getObject(arg0).length;
489
+ return ret;
490
+ };
541
491
  imports.wbg.__wbg_iterator_55f114446221aa5a = function() {
542
492
  const ret = Symbol.iterator;
543
493
  return addHeapObject(ret);
544
494
  };
495
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
496
+ const ret = getObject(arg0) in getObject(arg1);
497
+ return ret;
498
+ };
545
499
  imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
546
500
  const ret = BigInt.asUintN(64, arg0);
547
501
  return addHeapObject(ret);
@@ -558,18 +512,52 @@ function getImports() {
558
512
  const ret = getObject(arg0).value;
559
513
  return addHeapObject(ret);
560
514
  };
561
- imports.wbg.__wbindgen_number_new = function(arg0) {
562
- const ret = arg0;
515
+ imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
516
+ const ret = getObject(arg0)[arg1 >>> 0];
563
517
  return addHeapObject(ret);
564
518
  };
565
519
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
566
520
  const ret = new Error(getStringFromWasm0(arg0, arg1));
567
521
  return addHeapObject(ret);
568
522
  };
523
+ imports.wbg.__wbg_new_f9876326328f45ed = function() {
524
+ const ret = new Object();
525
+ return addHeapObject(ret);
526
+ };
527
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
528
+ const ret = getStringFromWasm0(arg0, arg1);
529
+ return addHeapObject(ret);
530
+ };
531
+ imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
532
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
533
+ };
534
+ imports.wbg.__wbindgen_is_string = function(arg0) {
535
+ const ret = typeof(getObject(arg0)) === 'string';
536
+ return ret;
537
+ };
538
+ imports.wbg.__wbg_new_b525de17f44a8943 = function() {
539
+ const ret = new Array();
540
+ return addHeapObject(ret);
541
+ };
542
+ imports.wbg.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
543
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
544
+ };
545
+ imports.wbg.__wbg_new_f841cc6f2098f4b5 = function() {
546
+ const ret = new Map();
547
+ return addHeapObject(ret);
548
+ };
549
+ imports.wbg.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
550
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
551
+ return addHeapObject(ret);
552
+ };
569
553
  imports.wbg.__wbindgen_is_null = function(arg0) {
570
554
  const ret = getObject(arg0) === null;
571
555
  return ret;
572
556
  };
557
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
558
+ const ret = getObject(arg0) === undefined;
559
+ return ret;
560
+ };
573
561
  imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
574
562
  try {
575
563
  var state0 = {a: arg0, b: arg1};
@@ -588,6 +576,18 @@ function getImports() {
588
576
  state0.a = state0.b = 0;
589
577
  }
590
578
  };
579
+ imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
580
+ const ret = Object.entries(getObject(arg0));
581
+ return addHeapObject(ret);
582
+ };
583
+ imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
584
+ const ret = getObject(arg0)[getObject(arg1)];
585
+ return addHeapObject(ret);
586
+ };
587
+ imports.wbg.__wbindgen_number_new = function(arg0) {
588
+ const ret = arg0;
589
+ return addHeapObject(ret);
590
+ };
591
591
  imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
592
592
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
593
593
  return addHeapObject(ret);
@@ -680,6 +680,13 @@ imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
680
680
  imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
681
681
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
682
682
  };
683
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
684
+ const ret = debugString(getObject(arg1));
685
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
686
+ const len0 = WASM_VECTOR_LEN;
687
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
688
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
689
+ };
683
690
  imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
684
691
  let result;
685
692
  try {
@@ -707,13 +714,6 @@ imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
707
714
  getInt32Memory0()[arg0 / 4 + 1] = len0;
708
715
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
709
716
  };
710
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
711
- const ret = debugString(getObject(arg1));
712
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
713
- const len0 = WASM_VECTOR_LEN;
714
- getInt32Memory0()[arg0 / 4 + 1] = len0;
715
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
716
- };
717
717
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
718
718
  throw new Error(getStringFromWasm0(arg0, arg1));
719
719
  };
@@ -734,8 +734,8 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
734
734
  const ret = false;
735
735
  return ret;
736
736
  };
737
- imports.wbg.__wbindgen_closure_wrapper18134 = function(arg0, arg1, arg2) {
738
- const ret = makeMutClosure(arg0, arg1, 244, __wbg_adapter_50);
737
+ imports.wbg.__wbindgen_closure_wrapper14875 = function(arg0, arg1, arg2) {
738
+ const ret = makeMutClosure(arg0, arg1, 241, __wbg_adapter_50);
739
739
  return addHeapObject(ret);
740
740
  };
741
741
 
package/wasm-web_bg.wasm CHANGED
Binary file