@next/swc-wasm-nodejs 13.1.7-canary.8 → 13.1.7-canary.9

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/wasm.js +48 -48
  3. package/wasm_bg.wasm +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-nodejs",
3
- "version": "13.1.7-canary.8",
3
+ "version": "13.1.7-canary.9",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
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 = new Uint8Array();
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(32).fill(undefined);
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 < 36) return;
41
+ if (idx < 132) return;
42
42
  heap[idx] = heap_next;
43
43
  heap_next = idx;
44
44
  }
@@ -108,19 +108,19 @@ function isLikeNone(x) {
108
108
  return x === undefined || x === null;
109
109
  }
110
110
 
111
- let cachedInt32Memory0 = new Int32Array();
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 cachedFloat64Memory0 = new Float64Array();
120
+ let cachedFloat64Memory0 = null;
121
121
 
122
122
  function getFloat64Memory0() {
123
- if (cachedFloat64Memory0.byteLength === 0) {
123
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
124
124
  cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
125
125
  }
126
126
  return cachedFloat64Memory0;
@@ -191,10 +191,10 @@ function debugString(val) {
191
191
  return className;
192
192
  }
193
193
 
194
- let cachedBigInt64Memory0 = new BigInt64Array();
194
+ let cachedBigInt64Memory0 = null;
195
195
 
196
196
  function getBigInt64Memory0() {
197
- if (cachedBigInt64Memory0.byteLength === 0) {
197
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
198
198
  cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
199
199
  }
200
200
  return cachedBigInt64Memory0;
@@ -225,7 +225,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_46(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hef6c021ecc402336(arg0, arg1, addHeapObject(arg2));
228
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6b5fe82d5c3424cf(arg0, arg1, addHeapObject(arg2));
229
229
  }
230
230
 
231
231
  /**
@@ -267,7 +267,7 @@ function handleError(f, args) {
267
267
  }
268
268
  }
269
269
  function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
270
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h4d3e2769554d24f7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
270
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h06f1d994f8ee2188(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
271
271
  }
272
272
 
273
273
  /**
@@ -449,52 +449,52 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
449
449
  return addHeapObject(ret);
450
450
  };
451
451
 
452
- module.exports.__wbg_new_1d9a920c6bfc44a8 = function() {
452
+ module.exports.__wbg_new_b525de17f44a8943 = function() {
453
453
  const ret = new Array();
454
454
  return addHeapObject(ret);
455
455
  };
456
456
 
457
- module.exports.__wbg_set_a68214f35c417fa9 = function(arg0, arg1, arg2) {
457
+ module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
458
458
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
459
459
  };
460
460
 
461
- module.exports.__wbg_new0_a57059d72c5b7aee = function() {
461
+ module.exports.__wbg_new0_25059e40b1c02766 = function() {
462
462
  const ret = new Date();
463
463
  return addHeapObject(ret);
464
464
  };
465
465
 
466
- module.exports.__wbg_getTimezoneOffset_89bd4275e1ca8341 = function(arg0) {
466
+ module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
467
467
  const ret = getObject(arg0).getTimezoneOffset();
468
468
  return ret;
469
469
  };
470
470
 
471
- module.exports.__wbg_self_6d479506f72c6a71 = function() { return handleError(function () {
471
+ module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
472
472
  const ret = self.self;
473
473
  return addHeapObject(ret);
474
474
  }, arguments) };
475
475
 
476
- module.exports.__wbg_window_f2557cc78490aceb = function() { return handleError(function () {
476
+ module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
477
477
  const ret = window.window;
478
478
  return addHeapObject(ret);
479
479
  }, arguments) };
480
480
 
481
- module.exports.__wbg_globalThis_7f206bda628d5286 = function() { return handleError(function () {
481
+ module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
482
482
  const ret = globalThis.globalThis;
483
483
  return addHeapObject(ret);
484
484
  }, arguments) };
485
485
 
486
- module.exports.__wbg_global_ba75c50d1cf384f4 = function() { return handleError(function () {
486
+ module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
487
487
  const ret = global.global;
488
488
  return addHeapObject(ret);
489
489
  }, arguments) };
490
490
 
491
- module.exports.__wbg_newnoargs_b5b063fc6c2f0376 = function(arg0, arg1) {
491
+ module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
492
492
  var v0 = getCachedStringFromWasm0(arg0, arg1);
493
493
  const ret = new Function(v0);
494
494
  return addHeapObject(ret);
495
495
  };
496
496
 
497
- module.exports.__wbg_call_97ae9d8645dc388b = function() { return handleError(function (arg0, arg1) {
497
+ module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
498
498
  const ret = getObject(arg0).call(getObject(arg1));
499
499
  return addHeapObject(ret);
500
500
  }, arguments) };
@@ -504,12 +504,12 @@ module.exports.__wbindgen_object_clone_ref = function(arg0) {
504
504
  return addHeapObject(ret);
505
505
  };
506
506
 
507
- module.exports.__wbg_get_765201544a2b6869 = function() { return handleError(function (arg0, arg1) {
507
+ module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
508
508
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
509
509
  return addHeapObject(ret);
510
510
  }, arguments) };
511
511
 
512
- module.exports.__wbg_getTime_cb82adb2556ed13e = function(arg0) {
512
+ module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
513
513
  const ret = getObject(arg0).getTime();
514
514
  return ret;
515
515
  };
@@ -533,7 +533,7 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
533
533
  console.error(v0);
534
534
  };
535
535
 
536
- module.exports.__wbg_iterator_6f9d4f28845f426c = function() {
536
+ module.exports.__wbg_iterator_55f114446221aa5a = function() {
537
537
  const ret = Symbol.iterator;
538
538
  return addHeapObject(ret);
539
539
  };
@@ -543,12 +543,12 @@ module.exports.__wbindgen_is_function = function(arg0) {
543
543
  return ret;
544
544
  };
545
545
 
546
- module.exports.__wbg_next_579e583d33566a86 = function(arg0) {
546
+ module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
547
547
  const ret = getObject(arg0).next;
548
548
  return addHeapObject(ret);
549
549
  };
550
550
 
551
- module.exports.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
551
+ module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
552
552
  const ret = getObject(arg0).length;
553
553
  return ret;
554
554
  };
@@ -558,21 +558,21 @@ module.exports.__wbindgen_memory = function() {
558
558
  return addHeapObject(ret);
559
559
  };
560
560
 
561
- module.exports.__wbg_buffer_3f3d764d4747d564 = function(arg0) {
561
+ module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
562
562
  const ret = getObject(arg0).buffer;
563
563
  return addHeapObject(ret);
564
564
  };
565
565
 
566
- module.exports.__wbg_new_8c3f0052272a457a = function(arg0) {
566
+ module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
567
567
  const ret = new Uint8Array(getObject(arg0));
568
568
  return addHeapObject(ret);
569
569
  };
570
570
 
571
- module.exports.__wbg_set_83db9690f9353e79 = function(arg0, arg1, arg2) {
571
+ module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
572
572
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
573
573
  };
574
574
 
575
- module.exports.__wbg_entries_65a76a413fc91037 = function(arg0) {
575
+ module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
576
576
  const ret = Object.entries(getObject(arg0));
577
577
  return addHeapObject(ret);
578
578
  };
@@ -584,7 +584,7 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
584
584
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
585
585
  };
586
586
 
587
- module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
587
+ module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
588
588
  let result;
589
589
  try {
590
590
  result = getObject(arg0) instanceof Uint8Array;
@@ -595,7 +595,7 @@ module.exports.__wbg_instanceof_Uint8Array_971eeda69eb75003 = function(arg0) {
595
595
  return ret;
596
596
  };
597
597
 
598
- module.exports.__wbg_instanceof_ArrayBuffer_e5e48f4762c5610b = function(arg0) {
598
+ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
599
599
  let result;
600
600
  try {
601
601
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -614,22 +614,22 @@ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
614
614
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
615
615
  };
616
616
 
617
- module.exports.__wbg_next_aaef7c8aa5e212ac = function() { return handleError(function (arg0) {
617
+ module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
618
618
  const ret = getObject(arg0).next();
619
619
  return addHeapObject(ret);
620
620
  }, arguments) };
621
621
 
622
- module.exports.__wbg_done_1b73b0672e15f234 = function(arg0) {
622
+ module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
623
623
  const ret = getObject(arg0).done;
624
624
  return ret;
625
625
  };
626
626
 
627
- module.exports.__wbg_value_1ccc36bc03462d71 = function(arg0) {
627
+ module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
628
628
  const ret = getObject(arg0).value;
629
629
  return addHeapObject(ret);
630
630
  };
631
631
 
632
- module.exports.__wbg_get_57245cc7d7c7619d = function(arg0, arg1) {
632
+ module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
633
633
  const ret = getObject(arg0)[arg1 >>> 0];
634
634
  return addHeapObject(ret);
635
635
  };
@@ -642,7 +642,7 @@ module.exports.__wbindgen_is_bigint = function(arg0) {
642
642
  module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
643
643
  const v = getObject(arg1);
644
644
  const ret = typeof(v) === 'bigint' ? v : undefined;
645
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0n : ret;
645
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
646
646
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
647
647
  };
648
648
 
@@ -656,12 +656,12 @@ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
656
656
  return ret;
657
657
  };
658
658
 
659
- module.exports.__wbg_isSafeInteger_dfa0593e8d7ac35a = function(arg0) {
659
+ module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
660
660
  const ret = Number.isSafeInteger(getObject(arg0));
661
661
  return ret;
662
662
  };
663
663
 
664
- module.exports.__wbg_isArray_27c46c67f498e15d = function(arg0) {
664
+ module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
665
665
  const ret = Array.isArray(getObject(arg0));
666
666
  return ret;
667
667
  };
@@ -671,7 +671,7 @@ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
671
671
  return addHeapObject(ret);
672
672
  };
673
673
 
674
- module.exports.__wbg_length_6e3bbe7c8bd4dbd8 = function(arg0) {
674
+ module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
675
675
  const ret = getObject(arg0).length;
676
676
  return ret;
677
677
  };
@@ -681,7 +681,7 @@ module.exports.__wbindgen_is_string = function(arg0) {
681
681
  return ret;
682
682
  };
683
683
 
684
- module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
684
+ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
685
685
  try {
686
686
  var state0 = {a: arg0, b: arg1};
687
687
  var cb0 = (arg0, arg1) => {
@@ -700,12 +700,12 @@ module.exports.__wbg_new_9962f939219f1820 = function(arg0, arg1) {
700
700
  }
701
701
  };
702
702
 
703
- module.exports.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
703
+ module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
704
704
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
705
705
  return addHeapObject(ret);
706
706
  }, arguments) };
707
707
 
708
- module.exports.__wbg_new_0b9bfdd97583284e = function() {
708
+ module.exports.__wbg_new_f9876326328f45ed = function() {
709
709
  const ret = new Object();
710
710
  return addHeapObject(ret);
711
711
  };
@@ -718,12 +718,12 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
718
718
  throw new Error(getStringFromWasm0(arg0, arg1));
719
719
  };
720
720
 
721
- module.exports.__wbg_then_11f7a54d67b4bfad = function(arg0, arg1) {
721
+ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
722
722
  const ret = getObject(arg0).then(getObject(arg1));
723
723
  return addHeapObject(ret);
724
724
  };
725
725
 
726
- module.exports.__wbg_resolve_99fe17964f31ffc0 = function(arg0) {
726
+ module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
727
727
  const ret = Promise.resolve(getObject(arg0));
728
728
  return addHeapObject(ret);
729
729
  };
@@ -738,8 +738,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
738
738
  return ret;
739
739
  };
740
740
 
741
- module.exports.__wbindgen_closure_wrapper23071 = function(arg0, arg1, arg2) {
742
- const ret = makeMutClosure(arg0, arg1, 274, __wbg_adapter_46);
741
+ module.exports.__wbindgen_closure_wrapper23117 = function(arg0, arg1, arg2) {
742
+ const ret = makeMutClosure(arg0, arg1, 275, __wbg_adapter_46);
743
743
  return addHeapObject(ret);
744
744
  };
745
745
 
package/wasm_bg.wasm CHANGED
Binary file