@php-wasm/node 2.0.18 → 2.0.19

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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -6926,24 +6926,36 @@ export function init(RuntimeName, PHPLoader) {
6926
6926
  }
6927
6927
 
6928
6928
  function _fd_close(fd) {
6929
- const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
6930
- if (pathResolutionErrno !== 0) {
6931
- _js_wasm_trace(
6932
- 'fd_close(%d) get_vfs_path_from_fd error %d',
6933
- fd,
6934
- pathResolutionErrno
6935
- );
6936
- return -ERRNO_CODES.EBADF;
6937
- }
6938
-
6939
- const result = _builtin_fd_close(fd);
6940
- if (result !== 0 || !locking.maybeLockedFds.has(fd)) {
6941
- _js_wasm_trace('fd_close(%d) result %d', fd, result);
6942
- return result;
6929
+ const fdCloseResult = _builtin_fd_close(fd);
6930
+ if (fdCloseResult !== 0 || !locking.maybeLockedFds.has(fd)) {
6931
+ _js_wasm_trace('fd_close(%d) result %d', fd, fdCloseResult);
6932
+ return fdCloseResult;
6943
6933
  }
6944
- const nativeFilePath = locking.get_native_path_from_vfs_path(vfsPath);
6945
6934
 
6946
6935
  try {
6936
+ const [vfsPath, pathResolutionErrno] =
6937
+ locking.get_vfs_path_from_fd(fd);
6938
+ if (pathResolutionErrno !== 0) {
6939
+ _js_wasm_trace(
6940
+ 'fd_close(%d) get_vfs_path_from_fd error %d',
6941
+ fd,
6942
+ pathResolutionErrno
6943
+ );
6944
+ /*
6945
+ * It looks like the file may have had an associated lock,
6946
+ * but since we cannot look up the path,
6947
+ * there is nothing more for us to do.
6948
+ *
6949
+ * NOTE: This seems possible for files that are locked and
6950
+ * then unlinked before close. It is an opportunity for a
6951
+ * lock to be orphaned in the lock manager.
6952
+ * @TODO: Explore how to ensure cleanup in this case.
6953
+ */
6954
+ return fdCloseResult;
6955
+ }
6956
+
6957
+ const nativeFilePath =
6958
+ locking.get_native_path_from_vfs_path(vfsPath);
6947
6959
  PHPLoader.fileLockManager.releaseLocksForProcessFd(
6948
6960
  PHPLoader.processId,
6949
6961
  fd,
@@ -6955,7 +6967,7 @@ export function init(RuntimeName, PHPLoader) {
6955
6967
  } finally {
6956
6968
  locking.maybeLockedFds.delete(fd);
6957
6969
  }
6958
- return result;
6970
+ return fdCloseResult;
6959
6971
  }
6960
6972
  _fd_close.sig = 'ii';
6961
6973
  function _builtin_fd_close(fd) {
@@ -7069,8 +7081,12 @@ export function init(RuntimeName, PHPLoader) {
7069
7081
  }
7070
7082
  },
7071
7083
  get_native_path_from_vfs_path(vfsPath) {
7072
- // TODO: Should there be a try/catch here?
7073
- const { node } = FS.lookupPath(vfsPath, {});
7084
+ const { node } = FS.lookupPath(vfsPath, {
7085
+ noent_okay: true,
7086
+ });
7087
+ if (!node) {
7088
+ throw new Error(`No node found for VFS path ${vfsPath}`);
7089
+ }
7074
7090
  if (node.mount.type === NODEFS) {
7075
7091
  return NODEFS.realPath(node);
7076
7092
  } else if (node.mount.type === PROXYFS) {
@@ -7340,10 +7356,9 @@ export function init(RuntimeName, PHPLoader) {
7340
7356
  return -ERRNO_CODES.EINVAL;
7341
7357
  }
7342
7358
 
7343
- const nativeFilePath =
7344
- locking.get_native_path_from_vfs_path(vfsPath);
7345
-
7346
7359
  try {
7360
+ const nativeFilePath =
7361
+ locking.get_native_path_from_vfs_path(vfsPath);
7347
7362
  const conflictingLock =
7348
7363
  PHPLoader.fileLockManager.findFirstConflictingByteRangeLock(
7349
7364
  nativeFilePath,
@@ -7477,16 +7492,16 @@ export function init(RuntimeName, PHPLoader) {
7477
7492
  pid,
7478
7493
  };
7479
7494
 
7480
- const nativeFilePath =
7481
- locking.get_native_path_from_vfs_path(vfsPath);
7482
- _js_wasm_trace(
7483
- 'fcntl(%d, F_SETLK) %s calling lockFileByteRange for range lock %s',
7484
- fd,
7485
- vfsPath,
7486
- rangeLock
7487
- );
7488
-
7489
7495
  try {
7496
+ const nativeFilePath =
7497
+ locking.get_native_path_from_vfs_path(vfsPath);
7498
+ _js_wasm_trace(
7499
+ 'fcntl(%d, F_SETLK) %s calling lockFileByteRange for range lock %s',
7500
+ fd,
7501
+ vfsPath,
7502
+ rangeLock
7503
+ );
7504
+
7490
7505
  const succeeded =
7491
7506
  PHPLoader.fileLockManager.lockFileByteRange(
7492
7507
  nativeFilePath,
@@ -17403,8 +17418,9 @@ export function init(RuntimeName, PHPLoader) {
17403
17418
  return -ERRNO_CODES.EINVAL;
17404
17419
  }
17405
17420
 
17406
- const nativeFilePath = locking.get_native_path_from_vfs_path(vfsPath);
17407
17421
  try {
17422
+ const nativeFilePath =
17423
+ locking.get_native_path_from_vfs_path(vfsPath);
17408
17424
  const obtainedLock = PHPLoader.fileLockManager.lockWholeFile(
17409
17425
  nativeFilePath,
17410
17426
  {
@@ -17740,9 +17756,9 @@ export function init(RuntimeName, PHPLoader) {
17740
17756
  if (!cp.stdin.closed) {
17741
17757
  cp.stdin.end();
17742
17758
  }
17743
- _free(buffer);
17744
- _free(iov);
17745
- _free(pnum);
17759
+ PHPLoader['free'](buffer);
17760
+ PHPLoader['free'](iov);
17761
+ PHPLoader['free'](pnum);
17746
17762
  }
17747
17763
 
17748
17764
  // pump() can never alter the result of this function.
@@ -18567,6 +18583,11 @@ export function init(RuntimeName, PHPLoader) {
18567
18583
  return ret;
18568
18584
  };
18569
18585
 
18586
+ var setErrNo = (value) => {
18587
+ HEAP32[___errno_location() >> 2] = value;
18588
+ return value;
18589
+ };
18590
+
18570
18591
  var FS_createPath = FS.createPath;
18571
18592
 
18572
18593
  var FS_unlink = (path) => FS.unlink(path);
@@ -31583,11 +31604,6 @@ export function init(RuntimeName, PHPLoader) {
31583
31604
 
31584
31605
  var allocateUTF8 = stringToNewUTF8;
31585
31606
 
31586
- var setErrNo = (value) => {
31587
- HEAP32[___errno_location() >> 2] = value;
31588
- return value;
31589
- };
31590
-
31591
31607
  var demangle = (func) => {
31592
31608
  // If demangle has failed before, stop demangling any further function names
31593
31609
  // This avoids an infinite recursion with malloc()->abort()->stackTrace()->demangle()->malloc()->...
@@ -35479,6 +35495,7 @@ export function init(RuntimeName, PHPLoader) {
35479
35495
  Module['FS_createDevice'] = FS_createDevice;
35480
35496
  Module['FS_createDataFile'] = FS_createDataFile;
35481
35497
  Module['FS_createLazyFile'] = FS_createLazyFile;
35498
+ Module['setErrNo'] = setErrNo;
35482
35499
  Module['PROXYFS'] = PROXYFS;
35483
35500
 
35484
35501
  function callMain(args = []) {
@@ -6926,24 +6926,36 @@ export function init(RuntimeName, PHPLoader) {
6926
6926
  }
6927
6927
 
6928
6928
  function _fd_close(fd) {
6929
- const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
6930
- if (pathResolutionErrno !== 0) {
6931
- _js_wasm_trace(
6932
- 'fd_close(%d) get_vfs_path_from_fd error %d',
6933
- fd,
6934
- pathResolutionErrno
6935
- );
6936
- return -ERRNO_CODES.EBADF;
6937
- }
6938
-
6939
- const result = _builtin_fd_close(fd);
6940
- if (result !== 0 || !locking.maybeLockedFds.has(fd)) {
6941
- _js_wasm_trace('fd_close(%d) result %d', fd, result);
6942
- return result;
6929
+ const fdCloseResult = _builtin_fd_close(fd);
6930
+ if (fdCloseResult !== 0 || !locking.maybeLockedFds.has(fd)) {
6931
+ _js_wasm_trace('fd_close(%d) result %d', fd, fdCloseResult);
6932
+ return fdCloseResult;
6943
6933
  }
6944
- const nativeFilePath = locking.get_native_path_from_vfs_path(vfsPath);
6945
6934
 
6946
6935
  try {
6936
+ const [vfsPath, pathResolutionErrno] =
6937
+ locking.get_vfs_path_from_fd(fd);
6938
+ if (pathResolutionErrno !== 0) {
6939
+ _js_wasm_trace(
6940
+ 'fd_close(%d) get_vfs_path_from_fd error %d',
6941
+ fd,
6942
+ pathResolutionErrno
6943
+ );
6944
+ /*
6945
+ * It looks like the file may have had an associated lock,
6946
+ * but since we cannot look up the path,
6947
+ * there is nothing more for us to do.
6948
+ *
6949
+ * NOTE: This seems possible for files that are locked and
6950
+ * then unlinked before close. It is an opportunity for a
6951
+ * lock to be orphaned in the lock manager.
6952
+ * @TODO: Explore how to ensure cleanup in this case.
6953
+ */
6954
+ return fdCloseResult;
6955
+ }
6956
+
6957
+ const nativeFilePath =
6958
+ locking.get_native_path_from_vfs_path(vfsPath);
6947
6959
  PHPLoader.fileLockManager.releaseLocksForProcessFd(
6948
6960
  PHPLoader.processId,
6949
6961
  fd,
@@ -6955,7 +6967,7 @@ export function init(RuntimeName, PHPLoader) {
6955
6967
  } finally {
6956
6968
  locking.maybeLockedFds.delete(fd);
6957
6969
  }
6958
- return result;
6970
+ return fdCloseResult;
6959
6971
  }
6960
6972
  _fd_close.sig = 'ii';
6961
6973
  function _builtin_fd_close(fd) {
@@ -7069,8 +7081,12 @@ export function init(RuntimeName, PHPLoader) {
7069
7081
  }
7070
7082
  },
7071
7083
  get_native_path_from_vfs_path(vfsPath) {
7072
- // TODO: Should there be a try/catch here?
7073
- const { node } = FS.lookupPath(vfsPath, {});
7084
+ const { node } = FS.lookupPath(vfsPath, {
7085
+ noent_okay: true,
7086
+ });
7087
+ if (!node) {
7088
+ throw new Error(`No node found for VFS path ${vfsPath}`);
7089
+ }
7074
7090
  if (node.mount.type === NODEFS) {
7075
7091
  return NODEFS.realPath(node);
7076
7092
  } else if (node.mount.type === PROXYFS) {
@@ -7340,10 +7356,9 @@ export function init(RuntimeName, PHPLoader) {
7340
7356
  return -ERRNO_CODES.EINVAL;
7341
7357
  }
7342
7358
 
7343
- const nativeFilePath =
7344
- locking.get_native_path_from_vfs_path(vfsPath);
7345
-
7346
7359
  try {
7360
+ const nativeFilePath =
7361
+ locking.get_native_path_from_vfs_path(vfsPath);
7347
7362
  const conflictingLock =
7348
7363
  PHPLoader.fileLockManager.findFirstConflictingByteRangeLock(
7349
7364
  nativeFilePath,
@@ -7477,16 +7492,16 @@ export function init(RuntimeName, PHPLoader) {
7477
7492
  pid,
7478
7493
  };
7479
7494
 
7480
- const nativeFilePath =
7481
- locking.get_native_path_from_vfs_path(vfsPath);
7482
- _js_wasm_trace(
7483
- 'fcntl(%d, F_SETLK) %s calling lockFileByteRange for range lock %s',
7484
- fd,
7485
- vfsPath,
7486
- rangeLock
7487
- );
7488
-
7489
7495
  try {
7496
+ const nativeFilePath =
7497
+ locking.get_native_path_from_vfs_path(vfsPath);
7498
+ _js_wasm_trace(
7499
+ 'fcntl(%d, F_SETLK) %s calling lockFileByteRange for range lock %s',
7500
+ fd,
7501
+ vfsPath,
7502
+ rangeLock
7503
+ );
7504
+
7490
7505
  const succeeded =
7491
7506
  PHPLoader.fileLockManager.lockFileByteRange(
7492
7507
  nativeFilePath,
@@ -17403,8 +17418,9 @@ export function init(RuntimeName, PHPLoader) {
17403
17418
  return -ERRNO_CODES.EINVAL;
17404
17419
  }
17405
17420
 
17406
- const nativeFilePath = locking.get_native_path_from_vfs_path(vfsPath);
17407
17421
  try {
17422
+ const nativeFilePath =
17423
+ locking.get_native_path_from_vfs_path(vfsPath);
17408
17424
  const obtainedLock = PHPLoader.fileLockManager.lockWholeFile(
17409
17425
  nativeFilePath,
17410
17426
  {
@@ -17740,9 +17756,9 @@ export function init(RuntimeName, PHPLoader) {
17740
17756
  if (!cp.stdin.closed) {
17741
17757
  cp.stdin.end();
17742
17758
  }
17743
- _free(buffer);
17744
- _free(iov);
17745
- _free(pnum);
17759
+ PHPLoader['free'](buffer);
17760
+ PHPLoader['free'](iov);
17761
+ PHPLoader['free'](pnum);
17746
17762
  }
17747
17763
 
17748
17764
  // pump() can never alter the result of this function.
@@ -18567,6 +18583,11 @@ export function init(RuntimeName, PHPLoader) {
18567
18583
  return ret;
18568
18584
  };
18569
18585
 
18586
+ var setErrNo = (value) => {
18587
+ HEAP32[___errno_location() >> 2] = value;
18588
+ return value;
18589
+ };
18590
+
18570
18591
  var FS_createPath = FS.createPath;
18571
18592
 
18572
18593
  var FS_unlink = (path) => FS.unlink(path);
@@ -31583,11 +31604,6 @@ export function init(RuntimeName, PHPLoader) {
31583
31604
 
31584
31605
  var allocateUTF8 = stringToNewUTF8;
31585
31606
 
31586
- var setErrNo = (value) => {
31587
- HEAP32[___errno_location() >> 2] = value;
31588
- return value;
31589
- };
31590
-
31591
31607
  var demangle = (func) => {
31592
31608
  // If demangle has failed before, stop demangling any further function names
31593
31609
  // This avoids an infinite recursion with malloc()->abort()->stackTrace()->demangle()->malloc()->...
@@ -35493,6 +35509,7 @@ export function init(RuntimeName, PHPLoader) {
35493
35509
  Module['FS_createDevice'] = FS_createDevice;
35494
35510
  Module['FS_createDataFile'] = FS_createDataFile;
35495
35511
  Module['FS_createLazyFile'] = FS_createLazyFile;
35512
+ Module['setErrNo'] = setErrNo;
35496
35513
  Module['PROXYFS'] = PROXYFS;
35497
35514
 
35498
35515
  function callMain(args = []) {
@@ -8,7 +8,7 @@ import path from 'path';
8
8
 
9
9
  const dependencyFilename = path.join(__dirname, '7_4_33', 'php_7_4.wasm');
10
10
  export { dependencyFilename };
11
- export const dependenciesTotalSize = 23626796;
11
+ export const dependenciesTotalSize = 23626844;
12
12
  const phpVersionString = '7.4.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 = 11742016;
834
+ var ___heap_base = 11742080;
835
835
 
836
836
  var alignMemory = (size, alignment) => {
837
837
  return Math.ceil(size / alignment) * alignment;
@@ -1786,13 +1786,13 @@ export function init(RuntimeName, PHPLoader) {
1786
1786
  1024
1787
1787
  );
1788
1788
 
1789
- var ___stack_high = 11742016;
1789
+ var ___stack_high = 11742080;
1790
1790
 
1791
- var ___stack_low = 10693440;
1791
+ var ___stack_low = 10693504;
1792
1792
 
1793
1793
  var ___stack_pointer = new WebAssembly.Global(
1794
1794
  { value: 'i32', mutable: true },
1795
- 11742016
1795
+ 11742080
1796
1796
  );
1797
1797
 
1798
1798
  var PATH = {
@@ -6926,24 +6926,36 @@ export function init(RuntimeName, PHPLoader) {
6926
6926
  }
6927
6927
 
6928
6928
  function _fd_close(fd) {
6929
- const [vfsPath, pathResolutionErrno] = locking.get_vfs_path_from_fd(fd);
6930
- if (pathResolutionErrno !== 0) {
6931
- _js_wasm_trace(
6932
- 'fd_close(%d) get_vfs_path_from_fd error %d',
6933
- fd,
6934
- pathResolutionErrno
6935
- );
6936
- return -ERRNO_CODES.EBADF;
6929
+ const fdCloseResult = _builtin_fd_close(fd);
6930
+ if (fdCloseResult !== 0 || !locking.maybeLockedFds.has(fd)) {
6931
+ _js_wasm_trace('fd_close(%d) result %d', fd, fdCloseResult);
6932
+ return fdCloseResult;
6937
6933
  }
6938
6934
 
6939
- const result = _builtin_fd_close(fd);
6940
- if (result !== 0 || !locking.maybeLockedFds.has(fd)) {
6941
- _js_wasm_trace('fd_close(%d) result %d', fd, result);
6942
- return result;
6943
- }
6944
- const nativeFilePath = locking.get_native_path_from_vfs_path(vfsPath);
6945
-
6946
6935
  try {
6936
+ const [vfsPath, pathResolutionErrno] =
6937
+ locking.get_vfs_path_from_fd(fd);
6938
+ if (pathResolutionErrno !== 0) {
6939
+ _js_wasm_trace(
6940
+ 'fd_close(%d) get_vfs_path_from_fd error %d',
6941
+ fd,
6942
+ pathResolutionErrno
6943
+ );
6944
+ /*
6945
+ * It looks like the file may have had an associated lock,
6946
+ * but since we cannot look up the path,
6947
+ * there is nothing more for us to do.
6948
+ *
6949
+ * NOTE: This seems possible for files that are locked and
6950
+ * then unlinked before close. It is an opportunity for a
6951
+ * lock to be orphaned in the lock manager.
6952
+ * @TODO: Explore how to ensure cleanup in this case.
6953
+ */
6954
+ return fdCloseResult;
6955
+ }
6956
+
6957
+ const nativeFilePath =
6958
+ locking.get_native_path_from_vfs_path(vfsPath);
6947
6959
  PHPLoader.fileLockManager.releaseLocksForProcessFd(
6948
6960
  PHPLoader.processId,
6949
6961
  fd,
@@ -6955,7 +6967,7 @@ export function init(RuntimeName, PHPLoader) {
6955
6967
  } finally {
6956
6968
  locking.maybeLockedFds.delete(fd);
6957
6969
  }
6958
- return result;
6970
+ return fdCloseResult;
6959
6971
  }
6960
6972
  _fd_close.sig = 'ii';
6961
6973
  function _builtin_fd_close(fd) {
@@ -7069,8 +7081,12 @@ export function init(RuntimeName, PHPLoader) {
7069
7081
  }
7070
7082
  },
7071
7083
  get_native_path_from_vfs_path(vfsPath) {
7072
- // TODO: Should there be a try/catch here?
7073
- const { node } = FS.lookupPath(vfsPath, {});
7084
+ const { node } = FS.lookupPath(vfsPath, {
7085
+ noent_okay: true,
7086
+ });
7087
+ if (!node) {
7088
+ throw new Error(`No node found for VFS path ${vfsPath}`);
7089
+ }
7074
7090
  if (node.mount.type === NODEFS) {
7075
7091
  return NODEFS.realPath(node);
7076
7092
  } else if (node.mount.type === PROXYFS) {
@@ -7340,10 +7356,9 @@ export function init(RuntimeName, PHPLoader) {
7340
7356
  return -ERRNO_CODES.EINVAL;
7341
7357
  }
7342
7358
 
7343
- const nativeFilePath =
7344
- locking.get_native_path_from_vfs_path(vfsPath);
7345
-
7346
7359
  try {
7360
+ const nativeFilePath =
7361
+ locking.get_native_path_from_vfs_path(vfsPath);
7347
7362
  const conflictingLock =
7348
7363
  PHPLoader.fileLockManager.findFirstConflictingByteRangeLock(
7349
7364
  nativeFilePath,
@@ -7477,16 +7492,16 @@ export function init(RuntimeName, PHPLoader) {
7477
7492
  pid,
7478
7493
  };
7479
7494
 
7480
- const nativeFilePath =
7481
- locking.get_native_path_from_vfs_path(vfsPath);
7482
- _js_wasm_trace(
7483
- 'fcntl(%d, F_SETLK) %s calling lockFileByteRange for range lock %s',
7484
- fd,
7485
- vfsPath,
7486
- rangeLock
7487
- );
7488
-
7489
7495
  try {
7496
+ const nativeFilePath =
7497
+ locking.get_native_path_from_vfs_path(vfsPath);
7498
+ _js_wasm_trace(
7499
+ 'fcntl(%d, F_SETLK) %s calling lockFileByteRange for range lock %s',
7500
+ fd,
7501
+ vfsPath,
7502
+ rangeLock
7503
+ );
7504
+
7490
7505
  const succeeded =
7491
7506
  PHPLoader.fileLockManager.lockFileByteRange(
7492
7507
  nativeFilePath,
@@ -17403,8 +17418,9 @@ export function init(RuntimeName, PHPLoader) {
17403
17418
  return -ERRNO_CODES.EINVAL;
17404
17419
  }
17405
17420
 
17406
- const nativeFilePath = locking.get_native_path_from_vfs_path(vfsPath);
17407
17421
  try {
17422
+ const nativeFilePath =
17423
+ locking.get_native_path_from_vfs_path(vfsPath);
17408
17424
  const obtainedLock = PHPLoader.fileLockManager.lockWholeFile(
17409
17425
  nativeFilePath,
17410
17426
  {
@@ -17740,9 +17756,9 @@ export function init(RuntimeName, PHPLoader) {
17740
17756
  if (!cp.stdin.closed) {
17741
17757
  cp.stdin.end();
17742
17758
  }
17743
- _free(buffer);
17744
- _free(iov);
17745
- _free(pnum);
17759
+ PHPLoader['free'](buffer);
17760
+ PHPLoader['free'](iov);
17761
+ PHPLoader['free'](pnum);
17746
17762
  }
17747
17763
 
17748
17764
  // pump() can never alter the result of this function.
@@ -18571,6 +18587,11 @@ export function init(RuntimeName, PHPLoader) {
18571
18587
  return ret;
18572
18588
  };
18573
18589
 
18590
+ var setErrNo = (value) => {
18591
+ HEAP32[___errno_location() >> 2] = value;
18592
+ return value;
18593
+ };
18594
+
18574
18595
  var FS_createPath = FS.createPath;
18575
18596
 
18576
18597
  var FS_unlink = (path) => FS.unlink(path);
@@ -31587,11 +31608,6 @@ export function init(RuntimeName, PHPLoader) {
31587
31608
 
31588
31609
  var allocateUTF8 = stringToNewUTF8;
31589
31610
 
31590
- var setErrNo = (value) => {
31591
- HEAP32[___errno_location() >> 2] = value;
31592
- return value;
31593
- };
31594
-
31595
31611
  var demangle = (func) => {
31596
31612
  // If demangle has failed before, stop demangling any further function names
31597
31613
  // This avoids an infinite recursion with malloc()->abort()->stackTrace()->demangle()->malloc()->...
@@ -32099,13 +32115,13 @@ export function init(RuntimeName, PHPLoader) {
32099
32115
  // End JS library code
32100
32116
 
32101
32117
  var ASM_CONSTS = {
32102
- 10534317: ($0) => {
32118
+ 10534365: ($0) => {
32103
32119
  if (!$0) {
32104
32120
  AL.alcErr = 0xa004;
32105
32121
  return 1;
32106
32122
  }
32107
32123
  },
32108
- 10534365: ($0) => {
32124
+ 10534413: ($0) => {
32109
32125
  if (!AL.currentCtx) {
32110
32126
  err('alGetProcAddress() called without a valid context');
32111
32127
  return 1;
@@ -35506,6 +35522,7 @@ export function init(RuntimeName, PHPLoader) {
35506
35522
  Module['FS_createDevice'] = FS_createDevice;
35507
35523
  Module['FS_createDataFile'] = FS_createDataFile;
35508
35524
  Module['FS_createLazyFile'] = FS_createLazyFile;
35525
+ Module['setErrNo'] = setErrNo;
35509
35526
  Module['PROXYFS'] = PROXYFS;
35510
35527
 
35511
35528
  function callMain(args = []) {