@php-wasm/node 2.0.15 → 2.0.18

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 (43) hide show
  1. package/asyncify/7_2_34/php_7_2.wasm +0 -0
  2. package/asyncify/7_3_33/php_7_3.wasm +0 -0
  3. package/asyncify/7_4_33/php_7_4.wasm +0 -0
  4. package/asyncify/8_0_30/php_8_0.wasm +0 -0
  5. package/asyncify/8_1_33/php_8_1.wasm +0 -0
  6. package/asyncify/8_2_29/php_8_2.wasm +0 -0
  7. package/asyncify/8_3_24/php_8_3.wasm +0 -0
  8. package/asyncify/8_4_11/php_8_4.wasm +0 -0
  9. package/asyncify/extensions/intl/7_2/intl.la +35 -0
  10. package/asyncify/extensions/intl/7_2/intl.so +0 -0
  11. package/asyncify/extensions/intl/7_3/intl.la +35 -0
  12. package/asyncify/extensions/intl/7_3/intl.so +0 -0
  13. package/asyncify/extensions/intl/7_4/intl.la +35 -0
  14. package/asyncify/extensions/intl/7_4/intl.so +0 -0
  15. package/asyncify/extensions/intl/8_0/intl.la +35 -0
  16. package/asyncify/extensions/intl/8_0/intl.so +0 -0
  17. package/asyncify/extensions/intl/8_1/intl.la +35 -0
  18. package/asyncify/extensions/intl/8_1/intl.so +0 -0
  19. package/asyncify/extensions/intl/8_2/intl.la +35 -0
  20. package/asyncify/extensions/intl/8_2/intl.so +0 -0
  21. package/asyncify/extensions/intl/8_3/intl.la +35 -0
  22. package/asyncify/extensions/intl/8_3/intl.so +0 -0
  23. package/asyncify/extensions/intl/8_4/intl.la +35 -0
  24. package/asyncify/extensions/intl/8_4/intl.so +0 -0
  25. package/asyncify/php_7_2.js +82 -83
  26. package/asyncify/php_7_3.js +82 -83
  27. package/asyncify/php_7_4.js +82 -83
  28. package/asyncify/php_8_0.js +82 -83
  29. package/asyncify/php_8_1.js +82 -83
  30. package/asyncify/php_8_2.js +82 -83
  31. package/asyncify/php_8_3.js +82 -83
  32. package/asyncify/php_8_4.js +82 -83
  33. package/index.cjs +5338 -7077
  34. package/index.js +5323 -7062
  35. package/jspi/{8_3_24 → 8_3_25}/php_8_3.wasm +0 -0
  36. package/jspi/extensions/intl/8_3/intl.so +0 -0
  37. package/jspi/php_8_3.js +31519 -34327
  38. package/package.json +7 -7
  39. package/asyncify/8_3_23/php_8_3.wasm +0 -0
  40. package/asyncify/8_4_10/php_8_4.wasm +0 -0
  41. package/jspi/8_4_10/php_8_4.wasm +0 -0
  42. package/lib/data/with-icu-data.d.ts +0 -2
  43. package/shared/icudt74l.dat +0 -0
@@ -8,7 +8,7 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '8_1_33', 'php_8_1.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 31651651;
11
+ export const dependenciesTotalSize = 25172766;
12
12
  const phpVersionString = '8.1.33';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
831
831
  },
832
832
  };
833
833
 
834
- var ___heap_base = 14257088;
834
+ var ___heap_base = 12921216;
835
835
 
836
836
  var alignMemory = (size, alignment) => {
837
837
  return Math.ceil(size / alignment) * alignment;
@@ -995,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
995
995
 
996
996
  /** @type {WebAssembly.Table} */
997
997
  var wasmTable = new WebAssembly.Table({
998
- initial: 15836,
998
+ initial: 11350,
999
999
  element: 'anyfunc',
1000
1000
  });
1001
1001
  var getWasmTableEntry = (funcPtr) => {
@@ -1781,88 +1781,18 @@ export function init(RuntimeName, PHPLoader) {
1781
1781
  );
1782
1782
  ___call_sighandler.sig = 'vpi';
1783
1783
 
1784
- class ExceptionInfo {
1785
- // excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
1786
- constructor(excPtr) {
1787
- this.excPtr = excPtr;
1788
- this.ptr = excPtr - 24;
1789
- }
1790
-
1791
- set_type(type) {
1792
- HEAPU32[(this.ptr + 4) >> 2] = type;
1793
- }
1794
-
1795
- get_type() {
1796
- return HEAPU32[(this.ptr + 4) >> 2];
1797
- }
1798
-
1799
- set_destructor(destructor) {
1800
- HEAPU32[(this.ptr + 8) >> 2] = destructor;
1801
- }
1802
-
1803
- get_destructor() {
1804
- return HEAPU32[(this.ptr + 8) >> 2];
1805
- }
1806
-
1807
- set_caught(caught) {
1808
- caught = caught ? 1 : 0;
1809
- HEAP8[this.ptr + 12] = caught;
1810
- }
1811
-
1812
- get_caught() {
1813
- return HEAP8[this.ptr + 12] != 0;
1814
- }
1815
-
1816
- set_rethrown(rethrown) {
1817
- rethrown = rethrown ? 1 : 0;
1818
- HEAP8[this.ptr + 13] = rethrown;
1819
- }
1820
-
1821
- get_rethrown() {
1822
- return HEAP8[this.ptr + 13] != 0;
1823
- }
1824
-
1825
- // Initialize native structure fields. Should be called once after allocated.
1826
- init(type, destructor) {
1827
- this.set_adjusted_ptr(0);
1828
- this.set_type(type);
1829
- this.set_destructor(destructor);
1830
- }
1831
-
1832
- set_adjusted_ptr(adjustedPtr) {
1833
- HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
1834
- }
1835
-
1836
- get_adjusted_ptr() {
1837
- return HEAPU32[(this.ptr + 16) >> 2];
1838
- }
1839
- }
1840
-
1841
- var exceptionLast = 0;
1842
-
1843
- var uncaughtExceptionCount = 0;
1844
- var ___cxa_throw = (ptr, type, destructor) => {
1845
- var info = new ExceptionInfo(ptr);
1846
- // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
1847
- info.init(type, destructor);
1848
- exceptionLast = ptr;
1849
- uncaughtExceptionCount++;
1850
- throw exceptionLast;
1851
- };
1852
- ___cxa_throw.sig = 'vppp';
1853
-
1854
1784
  var ___memory_base = new WebAssembly.Global(
1855
1785
  { value: 'i32', mutable: false },
1856
1786
  1024
1857
1787
  );
1858
1788
 
1859
- var ___stack_high = 14257088;
1789
+ var ___stack_high = 12921216;
1860
1790
 
1861
- var ___stack_low = 13208512;
1791
+ var ___stack_low = 11872640;
1862
1792
 
1863
1793
  var ___stack_pointer = new WebAssembly.Global(
1864
1794
  { value: 'i32', mutable: true },
1865
- 14257088
1795
+ 12921216
1866
1796
  );
1867
1797
 
1868
1798
  var PATH = {
@@ -19504,6 +19434,75 @@ export function init(RuntimeName, PHPLoader) {
19504
19434
  var __Unwind_FindEnclosingFunction = (ip) => 0;
19505
19435
  __Unwind_FindEnclosingFunction.sig = 'pp';
19506
19436
 
19437
+ class ExceptionInfo {
19438
+ // excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
19439
+ constructor(excPtr) {
19440
+ this.excPtr = excPtr;
19441
+ this.ptr = excPtr - 24;
19442
+ }
19443
+
19444
+ set_type(type) {
19445
+ HEAPU32[(this.ptr + 4) >> 2] = type;
19446
+ }
19447
+
19448
+ get_type() {
19449
+ return HEAPU32[(this.ptr + 4) >> 2];
19450
+ }
19451
+
19452
+ set_destructor(destructor) {
19453
+ HEAPU32[(this.ptr + 8) >> 2] = destructor;
19454
+ }
19455
+
19456
+ get_destructor() {
19457
+ return HEAPU32[(this.ptr + 8) >> 2];
19458
+ }
19459
+
19460
+ set_caught(caught) {
19461
+ caught = caught ? 1 : 0;
19462
+ HEAP8[this.ptr + 12] = caught;
19463
+ }
19464
+
19465
+ get_caught() {
19466
+ return HEAP8[this.ptr + 12] != 0;
19467
+ }
19468
+
19469
+ set_rethrown(rethrown) {
19470
+ rethrown = rethrown ? 1 : 0;
19471
+ HEAP8[this.ptr + 13] = rethrown;
19472
+ }
19473
+
19474
+ get_rethrown() {
19475
+ return HEAP8[this.ptr + 13] != 0;
19476
+ }
19477
+
19478
+ // Initialize native structure fields. Should be called once after allocated.
19479
+ init(type, destructor) {
19480
+ this.set_adjusted_ptr(0);
19481
+ this.set_type(type);
19482
+ this.set_destructor(destructor);
19483
+ }
19484
+
19485
+ set_adjusted_ptr(adjustedPtr) {
19486
+ HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
19487
+ }
19488
+
19489
+ get_adjusted_ptr() {
19490
+ return HEAPU32[(this.ptr + 16) >> 2];
19491
+ }
19492
+ }
19493
+
19494
+ var exceptionLast = 0;
19495
+
19496
+ var uncaughtExceptionCount = 0;
19497
+ var ___cxa_throw = (ptr, type, destructor) => {
19498
+ var info = new ExceptionInfo(ptr);
19499
+ // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
19500
+ info.init(type, destructor);
19501
+ exceptionLast = ptr;
19502
+ uncaughtExceptionCount++;
19503
+ throw exceptionLast;
19504
+ };
19505
+ ___cxa_throw.sig = 'vppp';
19507
19506
  var __Unwind_RaiseException = (ex) => {
19508
19507
  err('Warning: _Unwind_RaiseException is not correctly implemented');
19509
19508
  return ___cxa_throw(ex, 0, 0);
@@ -32100,13 +32099,13 @@ export function init(RuntimeName, PHPLoader) {
32100
32099
  // End JS library code
32101
32100
 
32102
32101
  var ASM_CONSTS = {
32103
- 12241821: ($0) => {
32102
+ 11643133: ($0) => {
32104
32103
  if (!$0) {
32105
32104
  AL.alcErr = 0xa004;
32106
32105
  return 1;
32107
32106
  }
32108
32107
  },
32109
- 12241869: ($0) => {
32108
+ 11643181: ($0) => {
32110
32109
  if (!AL.currentCtx) {
32111
32110
  err('alGetProcAddress() called without a valid context');
32112
32111
  return 1;
@@ -35144,14 +35143,14 @@ export function init(RuntimeName, PHPLoader) {
35144
35143
  var _emscripten_stack_get_current = () =>
35145
35144
  (_emscripten_stack_get_current =
35146
35145
  wasmExports['emscripten_stack_get_current'])();
35147
- var ___cxa_decrement_exception_refcount = (a0) =>
35148
- (___cxa_decrement_exception_refcount =
35149
- wasmExports['__cxa_decrement_exception_refcount'])(a0);
35146
+ var ___cxa_demangle = (a0, a1, a2, a3) =>
35147
+ (___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
35150
35148
  var ___cxa_increment_exception_refcount = (a0) =>
35151
35149
  (___cxa_increment_exception_refcount =
35152
35150
  wasmExports['__cxa_increment_exception_refcount'])(a0);
35153
- var ___cxa_demangle = (a0, a1, a2, a3) =>
35154
- (___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
35151
+ var ___cxa_decrement_exception_refcount = (a0) =>
35152
+ (___cxa_decrement_exception_refcount =
35153
+ wasmExports['__cxa_decrement_exception_refcount'])(a0);
35155
35154
  var ___cxa_can_catch = (a0, a1, a2) =>
35156
35155
  (___cxa_can_catch = wasmExports['__cxa_can_catch'])(a0, a1, a2);
35157
35156
  var ___cxa_get_exception_ptr = (a0) =>
@@ -8,7 +8,7 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '8_2_29', 'php_8_2.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 32043737;
11
+ export const dependenciesTotalSize = 25477244;
12
12
  const phpVersionString = '8.2.29';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
831
831
  },
832
832
  };
833
833
 
834
- var ___heap_base = 14294272;
834
+ var ___heap_base = 12958208;
835
835
 
836
836
  var alignMemory = (size, alignment) => {
837
837
  return Math.ceil(size / alignment) * alignment;
@@ -995,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
995
995
 
996
996
  /** @type {WebAssembly.Table} */
997
997
  var wasmTable = new WebAssembly.Table({
998
- initial: 16087,
998
+ initial: 11604,
999
999
  element: 'anyfunc',
1000
1000
  });
1001
1001
  var getWasmTableEntry = (funcPtr) => {
@@ -1781,88 +1781,18 @@ export function init(RuntimeName, PHPLoader) {
1781
1781
  );
1782
1782
  ___call_sighandler.sig = 'vpi';
1783
1783
 
1784
- class ExceptionInfo {
1785
- // excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
1786
- constructor(excPtr) {
1787
- this.excPtr = excPtr;
1788
- this.ptr = excPtr - 24;
1789
- }
1790
-
1791
- set_type(type) {
1792
- HEAPU32[(this.ptr + 4) >> 2] = type;
1793
- }
1794
-
1795
- get_type() {
1796
- return HEAPU32[(this.ptr + 4) >> 2];
1797
- }
1798
-
1799
- set_destructor(destructor) {
1800
- HEAPU32[(this.ptr + 8) >> 2] = destructor;
1801
- }
1802
-
1803
- get_destructor() {
1804
- return HEAPU32[(this.ptr + 8) >> 2];
1805
- }
1806
-
1807
- set_caught(caught) {
1808
- caught = caught ? 1 : 0;
1809
- HEAP8[this.ptr + 12] = caught;
1810
- }
1811
-
1812
- get_caught() {
1813
- return HEAP8[this.ptr + 12] != 0;
1814
- }
1815
-
1816
- set_rethrown(rethrown) {
1817
- rethrown = rethrown ? 1 : 0;
1818
- HEAP8[this.ptr + 13] = rethrown;
1819
- }
1820
-
1821
- get_rethrown() {
1822
- return HEAP8[this.ptr + 13] != 0;
1823
- }
1824
-
1825
- // Initialize native structure fields. Should be called once after allocated.
1826
- init(type, destructor) {
1827
- this.set_adjusted_ptr(0);
1828
- this.set_type(type);
1829
- this.set_destructor(destructor);
1830
- }
1831
-
1832
- set_adjusted_ptr(adjustedPtr) {
1833
- HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
1834
- }
1835
-
1836
- get_adjusted_ptr() {
1837
- return HEAPU32[(this.ptr + 16) >> 2];
1838
- }
1839
- }
1840
-
1841
- var exceptionLast = 0;
1842
-
1843
- var uncaughtExceptionCount = 0;
1844
- var ___cxa_throw = (ptr, type, destructor) => {
1845
- var info = new ExceptionInfo(ptr);
1846
- // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
1847
- info.init(type, destructor);
1848
- exceptionLast = ptr;
1849
- uncaughtExceptionCount++;
1850
- throw exceptionLast;
1851
- };
1852
- ___cxa_throw.sig = 'vppp';
1853
-
1854
1784
  var ___memory_base = new WebAssembly.Global(
1855
1785
  { value: 'i32', mutable: false },
1856
1786
  1024
1857
1787
  );
1858
1788
 
1859
- var ___stack_high = 14294272;
1789
+ var ___stack_high = 12958208;
1860
1790
 
1861
- var ___stack_low = 13245696;
1791
+ var ___stack_low = 11909632;
1862
1792
 
1863
1793
  var ___stack_pointer = new WebAssembly.Global(
1864
1794
  { value: 'i32', mutable: true },
1865
- 14294272
1795
+ 12958208
1866
1796
  );
1867
1797
 
1868
1798
  var PATH = {
@@ -19506,6 +19436,75 @@ export function init(RuntimeName, PHPLoader) {
19506
19436
  var __Unwind_FindEnclosingFunction = (ip) => 0;
19507
19437
  __Unwind_FindEnclosingFunction.sig = 'pp';
19508
19438
 
19439
+ class ExceptionInfo {
19440
+ // excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
19441
+ constructor(excPtr) {
19442
+ this.excPtr = excPtr;
19443
+ this.ptr = excPtr - 24;
19444
+ }
19445
+
19446
+ set_type(type) {
19447
+ HEAPU32[(this.ptr + 4) >> 2] = type;
19448
+ }
19449
+
19450
+ get_type() {
19451
+ return HEAPU32[(this.ptr + 4) >> 2];
19452
+ }
19453
+
19454
+ set_destructor(destructor) {
19455
+ HEAPU32[(this.ptr + 8) >> 2] = destructor;
19456
+ }
19457
+
19458
+ get_destructor() {
19459
+ return HEAPU32[(this.ptr + 8) >> 2];
19460
+ }
19461
+
19462
+ set_caught(caught) {
19463
+ caught = caught ? 1 : 0;
19464
+ HEAP8[this.ptr + 12] = caught;
19465
+ }
19466
+
19467
+ get_caught() {
19468
+ return HEAP8[this.ptr + 12] != 0;
19469
+ }
19470
+
19471
+ set_rethrown(rethrown) {
19472
+ rethrown = rethrown ? 1 : 0;
19473
+ HEAP8[this.ptr + 13] = rethrown;
19474
+ }
19475
+
19476
+ get_rethrown() {
19477
+ return HEAP8[this.ptr + 13] != 0;
19478
+ }
19479
+
19480
+ // Initialize native structure fields. Should be called once after allocated.
19481
+ init(type, destructor) {
19482
+ this.set_adjusted_ptr(0);
19483
+ this.set_type(type);
19484
+ this.set_destructor(destructor);
19485
+ }
19486
+
19487
+ set_adjusted_ptr(adjustedPtr) {
19488
+ HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
19489
+ }
19490
+
19491
+ get_adjusted_ptr() {
19492
+ return HEAPU32[(this.ptr + 16) >> 2];
19493
+ }
19494
+ }
19495
+
19496
+ var exceptionLast = 0;
19497
+
19498
+ var uncaughtExceptionCount = 0;
19499
+ var ___cxa_throw = (ptr, type, destructor) => {
19500
+ var info = new ExceptionInfo(ptr);
19501
+ // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
19502
+ info.init(type, destructor);
19503
+ exceptionLast = ptr;
19504
+ uncaughtExceptionCount++;
19505
+ throw exceptionLast;
19506
+ };
19507
+ ___cxa_throw.sig = 'vppp';
19509
19508
  var __Unwind_RaiseException = (ex) => {
19510
19509
  err('Warning: _Unwind_RaiseException is not correctly implemented');
19511
19510
  return ___cxa_throw(ex, 0, 0);
@@ -32100,13 +32099,13 @@ export function init(RuntimeName, PHPLoader) {
32100
32099
  // End JS library code
32101
32100
 
32102
32101
  var ASM_CONSTS = {
32103
- 12280477: ($0) => {
32102
+ 11681645: ($0) => {
32104
32103
  if (!$0) {
32105
32104
  AL.alcErr = 0xa004;
32106
32105
  return 1;
32107
32106
  }
32108
32107
  },
32109
- 12280525: ($0) => {
32108
+ 11681693: ($0) => {
32110
32109
  if (!AL.currentCtx) {
32111
32110
  err('alGetProcAddress() called without a valid context');
32112
32111
  return 1;
@@ -35144,14 +35143,14 @@ export function init(RuntimeName, PHPLoader) {
35144
35143
  var _emscripten_stack_get_current = () =>
35145
35144
  (_emscripten_stack_get_current =
35146
35145
  wasmExports['emscripten_stack_get_current'])();
35147
- var ___cxa_decrement_exception_refcount = (a0) =>
35148
- (___cxa_decrement_exception_refcount =
35149
- wasmExports['__cxa_decrement_exception_refcount'])(a0);
35146
+ var ___cxa_demangle = (a0, a1, a2, a3) =>
35147
+ (___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
35150
35148
  var ___cxa_increment_exception_refcount = (a0) =>
35151
35149
  (___cxa_increment_exception_refcount =
35152
35150
  wasmExports['__cxa_increment_exception_refcount'])(a0);
35153
- var ___cxa_demangle = (a0, a1, a2, a3) =>
35154
- (___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
35151
+ var ___cxa_decrement_exception_refcount = (a0) =>
35152
+ (___cxa_decrement_exception_refcount =
35153
+ wasmExports['__cxa_decrement_exception_refcount'])(a0);
35155
35154
  var ___cxa_can_catch = (a0, a1, a2) =>
35156
35155
  (___cxa_can_catch = wasmExports['__cxa_can_catch'])(a0, a1, a2);
35157
35156
  var ___cxa_get_exception_ptr = (a0) =>
@@ -8,7 +8,7 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '8_3_24', 'php_8_3.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 33148094;
11
+ export const dependenciesTotalSize = 26573878;
12
12
  const phpVersionString = '8.3.24';
13
13
  export function init(RuntimeName, PHPLoader) {
14
14
  // The rest of the code comes from the built php.js file and esm-suffix.js
@@ -831,7 +831,7 @@ export function init(RuntimeName, PHPLoader) {
831
831
  },
832
832
  };
833
833
 
834
- var ___heap_base = 15213248;
834
+ var ___heap_base = 13876608;
835
835
 
836
836
  var alignMemory = (size, alignment) => {
837
837
  return Math.ceil(size / alignment) * alignment;
@@ -995,7 +995,7 @@ export function init(RuntimeName, PHPLoader) {
995
995
 
996
996
  /** @type {WebAssembly.Table} */
997
997
  var wasmTable = new WebAssembly.Table({
998
- initial: 16131,
998
+ initial: 11640,
999
999
  element: 'anyfunc',
1000
1000
  });
1001
1001
  var getWasmTableEntry = (funcPtr) => {
@@ -1781,88 +1781,18 @@ export function init(RuntimeName, PHPLoader) {
1781
1781
  );
1782
1782
  ___call_sighandler.sig = 'vpi';
1783
1783
 
1784
- class ExceptionInfo {
1785
- // excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
1786
- constructor(excPtr) {
1787
- this.excPtr = excPtr;
1788
- this.ptr = excPtr - 24;
1789
- }
1790
-
1791
- set_type(type) {
1792
- HEAPU32[(this.ptr + 4) >> 2] = type;
1793
- }
1794
-
1795
- get_type() {
1796
- return HEAPU32[(this.ptr + 4) >> 2];
1797
- }
1798
-
1799
- set_destructor(destructor) {
1800
- HEAPU32[(this.ptr + 8) >> 2] = destructor;
1801
- }
1802
-
1803
- get_destructor() {
1804
- return HEAPU32[(this.ptr + 8) >> 2];
1805
- }
1806
-
1807
- set_caught(caught) {
1808
- caught = caught ? 1 : 0;
1809
- HEAP8[this.ptr + 12] = caught;
1810
- }
1811
-
1812
- get_caught() {
1813
- return HEAP8[this.ptr + 12] != 0;
1814
- }
1815
-
1816
- set_rethrown(rethrown) {
1817
- rethrown = rethrown ? 1 : 0;
1818
- HEAP8[this.ptr + 13] = rethrown;
1819
- }
1820
-
1821
- get_rethrown() {
1822
- return HEAP8[this.ptr + 13] != 0;
1823
- }
1824
-
1825
- // Initialize native structure fields. Should be called once after allocated.
1826
- init(type, destructor) {
1827
- this.set_adjusted_ptr(0);
1828
- this.set_type(type);
1829
- this.set_destructor(destructor);
1830
- }
1831
-
1832
- set_adjusted_ptr(adjustedPtr) {
1833
- HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
1834
- }
1835
-
1836
- get_adjusted_ptr() {
1837
- return HEAPU32[(this.ptr + 16) >> 2];
1838
- }
1839
- }
1840
-
1841
- var exceptionLast = 0;
1842
-
1843
- var uncaughtExceptionCount = 0;
1844
- var ___cxa_throw = (ptr, type, destructor) => {
1845
- var info = new ExceptionInfo(ptr);
1846
- // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
1847
- info.init(type, destructor);
1848
- exceptionLast = ptr;
1849
- uncaughtExceptionCount++;
1850
- throw exceptionLast;
1851
- };
1852
- ___cxa_throw.sig = 'vppp';
1853
-
1854
1784
  var ___memory_base = new WebAssembly.Global(
1855
1785
  { value: 'i32', mutable: false },
1856
1786
  1024
1857
1787
  );
1858
1788
 
1859
- var ___stack_high = 15213248;
1789
+ var ___stack_high = 13876608;
1860
1790
 
1861
- var ___stack_low = 14164672;
1791
+ var ___stack_low = 12828032;
1862
1792
 
1863
1793
  var ___stack_pointer = new WebAssembly.Global(
1864
1794
  { value: 'i32', mutable: true },
1865
- 15213248
1795
+ 13876608
1866
1796
  );
1867
1797
 
1868
1798
  var PATH = {
@@ -19506,6 +19436,75 @@ export function init(RuntimeName, PHPLoader) {
19506
19436
  var __Unwind_FindEnclosingFunction = (ip) => 0;
19507
19437
  __Unwind_FindEnclosingFunction.sig = 'pp';
19508
19438
 
19439
+ class ExceptionInfo {
19440
+ // excPtr - Thrown object pointer to wrap. Metadata pointer is calculated from it.
19441
+ constructor(excPtr) {
19442
+ this.excPtr = excPtr;
19443
+ this.ptr = excPtr - 24;
19444
+ }
19445
+
19446
+ set_type(type) {
19447
+ HEAPU32[(this.ptr + 4) >> 2] = type;
19448
+ }
19449
+
19450
+ get_type() {
19451
+ return HEAPU32[(this.ptr + 4) >> 2];
19452
+ }
19453
+
19454
+ set_destructor(destructor) {
19455
+ HEAPU32[(this.ptr + 8) >> 2] = destructor;
19456
+ }
19457
+
19458
+ get_destructor() {
19459
+ return HEAPU32[(this.ptr + 8) >> 2];
19460
+ }
19461
+
19462
+ set_caught(caught) {
19463
+ caught = caught ? 1 : 0;
19464
+ HEAP8[this.ptr + 12] = caught;
19465
+ }
19466
+
19467
+ get_caught() {
19468
+ return HEAP8[this.ptr + 12] != 0;
19469
+ }
19470
+
19471
+ set_rethrown(rethrown) {
19472
+ rethrown = rethrown ? 1 : 0;
19473
+ HEAP8[this.ptr + 13] = rethrown;
19474
+ }
19475
+
19476
+ get_rethrown() {
19477
+ return HEAP8[this.ptr + 13] != 0;
19478
+ }
19479
+
19480
+ // Initialize native structure fields. Should be called once after allocated.
19481
+ init(type, destructor) {
19482
+ this.set_adjusted_ptr(0);
19483
+ this.set_type(type);
19484
+ this.set_destructor(destructor);
19485
+ }
19486
+
19487
+ set_adjusted_ptr(adjustedPtr) {
19488
+ HEAPU32[(this.ptr + 16) >> 2] = adjustedPtr;
19489
+ }
19490
+
19491
+ get_adjusted_ptr() {
19492
+ return HEAPU32[(this.ptr + 16) >> 2];
19493
+ }
19494
+ }
19495
+
19496
+ var exceptionLast = 0;
19497
+
19498
+ var uncaughtExceptionCount = 0;
19499
+ var ___cxa_throw = (ptr, type, destructor) => {
19500
+ var info = new ExceptionInfo(ptr);
19501
+ // Initialize ExceptionInfo content after it was allocated in __cxa_allocate_exception.
19502
+ info.init(type, destructor);
19503
+ exceptionLast = ptr;
19504
+ uncaughtExceptionCount++;
19505
+ throw exceptionLast;
19506
+ };
19507
+ ___cxa_throw.sig = 'vppp';
19509
19508
  var __Unwind_RaiseException = (ex) => {
19510
19509
  err('Warning: _Unwind_RaiseException is not correctly implemented');
19511
19510
  return ___cxa_throw(ex, 0, 0);
@@ -32100,13 +32099,13 @@ export function init(RuntimeName, PHPLoader) {
32100
32099
  // End JS library code
32101
32100
 
32102
32101
  var ASM_CONSTS = {
32103
- 13231949: ($0) => {
32102
+ 12632557: ($0) => {
32104
32103
  if (!$0) {
32105
32104
  AL.alcErr = 0xa004;
32106
32105
  return 1;
32107
32106
  }
32108
32107
  },
32109
- 13231997: ($0) => {
32108
+ 12632605: ($0) => {
32110
32109
  if (!AL.currentCtx) {
32111
32110
  err('alGetProcAddress() called without a valid context');
32112
32111
  return 1;
@@ -35144,14 +35143,14 @@ export function init(RuntimeName, PHPLoader) {
35144
35143
  var _emscripten_stack_get_current = () =>
35145
35144
  (_emscripten_stack_get_current =
35146
35145
  wasmExports['emscripten_stack_get_current'])();
35147
- var ___cxa_decrement_exception_refcount = (a0) =>
35148
- (___cxa_decrement_exception_refcount =
35149
- wasmExports['__cxa_decrement_exception_refcount'])(a0);
35146
+ var ___cxa_demangle = (a0, a1, a2, a3) =>
35147
+ (___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
35150
35148
  var ___cxa_increment_exception_refcount = (a0) =>
35151
35149
  (___cxa_increment_exception_refcount =
35152
35150
  wasmExports['__cxa_increment_exception_refcount'])(a0);
35153
- var ___cxa_demangle = (a0, a1, a2, a3) =>
35154
- (___cxa_demangle = wasmExports['__cxa_demangle'])(a0, a1, a2, a3);
35151
+ var ___cxa_decrement_exception_refcount = (a0) =>
35152
+ (___cxa_decrement_exception_refcount =
35153
+ wasmExports['__cxa_decrement_exception_refcount'])(a0);
35155
35154
  var ___cxa_can_catch = (a0, a1, a2) =>
35156
35155
  (___cxa_can_catch = wasmExports['__cxa_can_catch'])(a0, a1, a2);
35157
35156
  var ___cxa_get_exception_ptr = (a0) =>