@php-wasm/node-8-3 3.1.1 → 3.1.3

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
@@ -15,7 +15,7 @@ const currentDirPath =
15
15
  : path.dirname(fileURLToPath(import.meta.url));
16
16
  const dependencyFilename = path.join(currentDirPath, '8_3_30', 'php_8_3.wasm');
17
17
  export { dependencyFilename };
18
- export const dependenciesTotalSize = 27939995;
18
+ export const dependenciesTotalSize = 27955691;
19
19
  const phpVersionString = '8.3.30';
20
20
  export function init(RuntimeName, PHPLoader) {
21
21
  // The rest of the code comes from the built php.js file and esm-suffix.js
@@ -5125,8 +5125,10 @@ export function init(RuntimeName, PHPLoader) {
5125
5125
  );
5126
5126
 
5127
5127
  var ___call_sighandler = (fp, sig) =>
5128
- ((a1) => {})(
5129
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ sig
5128
+ ((
5129
+ a1
5130
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
5131
+ sig
5130
5132
  );
5131
5133
  ___call_sighandler.sig = 'vpi';
5132
5134
 
@@ -6562,10 +6564,13 @@ export function init(RuntimeName, PHPLoader) {
6562
6564
  * are not yet assigned.
6563
6565
  */
6564
6566
  addOnInit(() => {
6567
+ if (typeof PHPLoader.processId !== 'number') {
6568
+ throw new Error(
6569
+ 'PHPLoader.processId must be set before init'
6570
+ );
6571
+ }
6565
6572
  Module['userSpace'] = PHPLoader.bindUserSpace({
6566
- // TODO: Require PID instead of defaulting to 42.
6567
- pid: PHPLoader.processId ?? 42,
6568
- // TODO: When receiving this context, validate that all these fields exist.
6573
+ pid: PHPLoader.processId,
6569
6574
  constants: {
6570
6575
  F_GETFL: Number('3'),
6571
6576
  O_ACCMODE: Number('2097155'),
@@ -8503,8 +8508,11 @@ export function init(RuntimeName, PHPLoader) {
8503
8508
  dlSetError(`'Could not load dynamic lib: ${filename}\n${e}`);
8504
8509
  runtimeKeepalivePop();
8505
8510
  callUserCallback(() =>
8506
- ((a1, a2) => {})(
8507
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
8511
+ ((
8512
+ a1,
8513
+ a2
8514
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
8515
+ handle,
8508
8516
  user_data
8509
8517
  )
8510
8518
  );
@@ -8512,8 +8520,11 @@ export function init(RuntimeName, PHPLoader) {
8512
8520
  function successCallback() {
8513
8521
  runtimeKeepalivePop();
8514
8522
  callUserCallback(() =>
8515
- ((a1, a2) => {})(
8516
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
8523
+ ((
8524
+ a1,
8525
+ a2
8526
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
8527
+ handle,
8517
8528
  user_data
8518
8529
  )
8519
8530
  );
@@ -18107,8 +18118,11 @@ export function init(RuntimeName, PHPLoader) {
18107
18118
  var trace = getCallstack();
18108
18119
  var parts = trace.split('\n');
18109
18120
  for (var i = 0; i < parts.length; i++) {
18110
- var ret = ((a1, a2) => {})(
18111
- /* a dynamic function call to signature iii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 0,
18121
+ var ret = ((
18122
+ a1,
18123
+ a2
18124
+ ) => {}) /* a dynamic function call to signature iii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
18125
+ 0,
18112
18126
  arg
18113
18127
  );
18114
18128
  if (ret !== 0) return;
@@ -18652,8 +18666,12 @@ export function init(RuntimeName, PHPLoader) {
18652
18666
  stringToUTF8(e.locale || '', keyEventData + 128, 32);
18653
18667
 
18654
18668
  if (
18655
- ((a1, a2, a3) => {})(
18656
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
18669
+ ((
18670
+ a1,
18671
+ a2,
18672
+ a3
18673
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
18674
+ eventTypeId,
18657
18675
  keyEventData,
18658
18676
  userData
18659
18677
  )
@@ -18771,8 +18789,12 @@ export function init(RuntimeName, PHPLoader) {
18771
18789
  fillMouseEventData(JSEvents.mouseEvent, e, target);
18772
18790
 
18773
18791
  if (
18774
- ((a1, a2, a3) => {})(
18775
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
18792
+ ((
18793
+ a1,
18794
+ a2,
18795
+ a3
18796
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
18797
+ eventTypeId,
18776
18798
  JSEvents.mouseEvent,
18777
18799
  userData
18778
18800
  )
@@ -18986,8 +19008,12 @@ export function init(RuntimeName, PHPLoader) {
18986
19008
  HEAPF64[(wheelEvent + 80) >> 3] = e['deltaZ'];
18987
19009
  HEAP32[(wheelEvent + 88) >> 2] = e['deltaMode'];
18988
19010
  if (
18989
- ((a1, a2, a3) => {})(
18990
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
19011
+ ((
19012
+ a1,
19013
+ a2,
19014
+ a3
19015
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19016
+ eventTypeId,
18991
19017
  wheelEvent,
18992
19018
  userData
18993
19019
  )
@@ -19068,8 +19094,12 @@ export function init(RuntimeName, PHPLoader) {
19068
19094
  HEAP32[(uiEvent + 28) >> 2] = pageXOffset | 0; // scroll offsets are float
19069
19095
  HEAP32[(uiEvent + 32) >> 2] = pageYOffset | 0;
19070
19096
  if (
19071
- ((a1, a2, a3) => {})(
19072
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
19097
+ ((
19098
+ a1,
19099
+ a2,
19100
+ a3
19101
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19102
+ eventTypeId,
19073
19103
  uiEvent,
19074
19104
  userData
19075
19105
  )
@@ -19143,8 +19173,12 @@ export function init(RuntimeName, PHPLoader) {
19143
19173
  stringToUTF8(id, focusEvent + 128, 128);
19144
19174
 
19145
19175
  if (
19146
- ((a1, a2, a3) => {})(
19147
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
19176
+ ((
19177
+ a1,
19178
+ a2,
19179
+ a3
19180
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19181
+ eventTypeId,
19148
19182
  focusEvent,
19149
19183
  userData
19150
19184
  )
@@ -19260,8 +19294,12 @@ export function init(RuntimeName, PHPLoader) {
19260
19294
  ); // TODO: Thread-safety with respect to emscripten_get_deviceorientation_status()
19261
19295
 
19262
19296
  if (
19263
- ((a1, a2, a3) => {})(
19264
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
19297
+ ((
19298
+ a1,
19299
+ a2,
19300
+ a3
19301
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19302
+ eventTypeId,
19265
19303
  JSEvents.deviceOrientationEvent,
19266
19304
  userData
19267
19305
  )
@@ -19345,8 +19383,12 @@ export function init(RuntimeName, PHPLoader) {
19345
19383
  fillDeviceMotionEventData(JSEvents.deviceMotionEvent, e, target); // TODO: Thread-safety with respect to emscripten_get_devicemotion_status()
19346
19384
 
19347
19385
  if (
19348
- ((a1, a2, a3) => {})(
19349
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
19386
+ ((
19387
+ a1,
19388
+ a2,
19389
+ a3
19390
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19391
+ eventTypeId,
19350
19392
  JSEvents.deviceMotionEvent,
19351
19393
  userData
19352
19394
  )
@@ -19453,8 +19495,12 @@ export function init(RuntimeName, PHPLoader) {
19453
19495
  fillOrientationChangeEventData(orientationChangeEvent);
19454
19496
 
19455
19497
  if (
19456
- ((a1, a2, a3) => {})(
19457
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
19498
+ ((
19499
+ a1,
19500
+ a2,
19501
+ a3
19502
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19503
+ eventTypeId,
19458
19504
  orientationChangeEvent,
19459
19505
  userData
19460
19506
  )
@@ -19583,8 +19629,12 @@ export function init(RuntimeName, PHPLoader) {
19583
19629
  fillFullscreenChangeEventData(fullscreenChangeEvent);
19584
19630
 
19585
19631
  if (
19586
- ((a1, a2, a3) => {})(
19587
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
19632
+ ((
19633
+ a1,
19634
+ a2,
19635
+ a3
19636
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19637
+ eventTypeId,
19588
19638
  fullscreenChangeEvent,
19589
19639
  userData
19590
19640
  )
@@ -19729,8 +19779,12 @@ export function init(RuntimeName, PHPLoader) {
19729
19779
  );
19730
19780
 
19731
19781
  if (currentFullscreenStrategy.canvasResizedCallback) {
19732
- ((a1, a2, a3) => {})(
19733
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 37,
19782
+ ((
19783
+ a1,
19784
+ a2,
19785
+ a3
19786
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19787
+ 37,
19734
19788
  0,
19735
19789
  currentFullscreenStrategy.canvasResizedCallbackUserData
19736
19790
  );
@@ -19831,8 +19885,12 @@ export function init(RuntimeName, PHPLoader) {
19831
19885
  currentFullscreenStrategy = strategy;
19832
19886
 
19833
19887
  if (strategy.canvasResizedCallback) {
19834
- ((a1, a2, a3) => {})(
19835
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 37,
19888
+ ((
19889
+ a1,
19890
+ a2,
19891
+ a3
19892
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19893
+ 37,
19836
19894
  0,
19837
19895
  strategy.canvasResizedCallbackUserData
19838
19896
  );
@@ -19932,8 +19990,12 @@ export function init(RuntimeName, PHPLoader) {
19932
19990
  !inCenteredWithoutScalingFullscreenMode &&
19933
19991
  currentFullscreenStrategy.canvasResizedCallback
19934
19992
  ) {
19935
- ((a1, a2, a3) => {})(
19936
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 37,
19993
+ ((
19994
+ a1,
19995
+ a2,
19996
+ a3
19997
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
19998
+ 37,
19937
19999
  0,
19938
20000
  currentFullscreenStrategy.canvasResizedCallbackUserData
19939
20001
  );
@@ -20032,8 +20094,12 @@ export function init(RuntimeName, PHPLoader) {
20032
20094
  softFullscreenResizeWebGLRenderTarget
20033
20095
  );
20034
20096
  if (strategy.canvasResizedCallback) {
20035
- ((a1, a2, a3) => {})(
20036
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 37,
20097
+ ((
20098
+ a1,
20099
+ a2,
20100
+ a3
20101
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20102
+ 37,
20037
20103
  0,
20038
20104
  strategy.canvasResizedCallbackUserData
20039
20105
  );
@@ -20046,8 +20112,12 @@ export function init(RuntimeName, PHPLoader) {
20046
20112
 
20047
20113
  // Inform the caller that the canvas size has changed.
20048
20114
  if (strategy.canvasResizedCallback) {
20049
- ((a1, a2, a3) => {})(
20050
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 37,
20115
+ ((
20116
+ a1,
20117
+ a2,
20118
+ a3
20119
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20120
+ 37,
20051
20121
  0,
20052
20122
  strategy.canvasResizedCallbackUserData
20053
20123
  );
@@ -20109,8 +20179,12 @@ export function init(RuntimeName, PHPLoader) {
20109
20179
  fillPointerlockChangeEventData(pointerlockChangeEvent);
20110
20180
 
20111
20181
  if (
20112
- ((a1, a2, a3) => {})(
20113
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
20182
+ ((
20183
+ a1,
20184
+ a2,
20185
+ a3
20186
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20187
+ eventTypeId,
20114
20188
  pointerlockChangeEvent,
20115
20189
  userData
20116
20190
  )
@@ -20164,8 +20238,12 @@ export function init(RuntimeName, PHPLoader) {
20164
20238
  ) => {
20165
20239
  var pointerlockErrorEventHandlerFunc = (e = event) => {
20166
20240
  if (
20167
- ((a1, a2, a3) => {})(
20168
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
20241
+ ((
20242
+ a1,
20243
+ a2,
20244
+ a3
20245
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20246
+ eventTypeId,
20169
20247
  0,
20170
20248
  userData
20171
20249
  )
@@ -20319,8 +20397,12 @@ export function init(RuntimeName, PHPLoader) {
20319
20397
  fillVisibilityChangeEventData(visibilityChangeEvent);
20320
20398
 
20321
20399
  if (
20322
- ((a1, a2, a3) => {})(
20323
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
20400
+ ((
20401
+ a1,
20402
+ a2,
20403
+ a3
20404
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20405
+ eventTypeId,
20324
20406
  visibilityChangeEvent,
20325
20407
  userData
20326
20408
  )
@@ -20440,8 +20522,12 @@ export function init(RuntimeName, PHPLoader) {
20440
20522
  HEAP32[(touchEvent + 8) >> 2] = numTouches;
20441
20523
 
20442
20524
  if (
20443
- ((a1, a2, a3) => {})(
20444
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
20525
+ ((
20526
+ a1,
20527
+ a2,
20528
+ a3
20529
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20530
+ eventTypeId,
20445
20531
  touchEvent,
20446
20532
  userData
20447
20533
  )
@@ -20579,8 +20665,12 @@ export function init(RuntimeName, PHPLoader) {
20579
20665
  fillGamepadEventData(gamepadEvent, e['gamepad']);
20580
20666
 
20581
20667
  if (
20582
- ((a1, a2, a3) => {})(
20583
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
20668
+ ((
20669
+ a1,
20670
+ a2,
20671
+ a3
20672
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20673
+ eventTypeId,
20584
20674
  gamepadEvent,
20585
20675
  userData
20586
20676
  )
@@ -20682,8 +20772,12 @@ export function init(RuntimeName, PHPLoader) {
20682
20772
  ) => {
20683
20773
  var beforeUnloadEventHandlerFunc = (e = event) => {
20684
20774
  // Note: This is always called on the main browser thread, since it needs synchronously return a value!
20685
- var confirmationMessage = ((a1, a2, a3) => {})(
20686
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
20775
+ var confirmationMessage = ((
20776
+ a1,
20777
+ a2,
20778
+ a3
20779
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20780
+ eventTypeId,
20687
20781
  0,
20688
20782
  userData
20689
20783
  );
@@ -20754,8 +20848,12 @@ export function init(RuntimeName, PHPLoader) {
20754
20848
  fillBatteryEventData(batteryEvent, battery);
20755
20849
 
20756
20850
  if (
20757
- ((a1, a2, a3) => {})(
20758
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
20851
+ ((
20852
+ a1,
20853
+ a2,
20854
+ a3
20855
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20856
+ eventTypeId,
20759
20857
  batteryEvent,
20760
20858
  userData
20761
20859
  )
@@ -20857,8 +20955,11 @@ export function init(RuntimeName, PHPLoader) {
20857
20955
 
20858
20956
  var _emscripten_request_animation_frame = (cb, userData) =>
20859
20957
  requestAnimationFrame((timeStamp) =>
20860
- ((a1, a2) => {})(
20861
- /* a dynamic function call to signature idi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ timeStamp,
20958
+ ((
20959
+ a1,
20960
+ a2
20961
+ ) => {}) /* a dynamic function call to signature idi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20962
+ timeStamp,
20862
20963
  userData
20863
20964
  )
20864
20965
  );
@@ -20870,8 +20971,11 @@ export function init(RuntimeName, PHPLoader) {
20870
20971
  var _emscripten_request_animation_frame_loop = (cb, userData) => {
20871
20972
  function tick(timeStamp) {
20872
20973
  if (
20873
- ((a1, a2) => {})(
20874
- /* a dynamic function call to signature idi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ timeStamp,
20974
+ ((
20975
+ a1,
20976
+ a2
20977
+ ) => {}) /* a dynamic function call to signature idi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
20978
+ timeStamp,
20875
20979
  userData
20876
20980
  )
20877
20981
  ) {
@@ -21128,8 +21232,10 @@ export function init(RuntimeName, PHPLoader) {
21128
21232
  return emSetImmediate(() => {
21129
21233
  runtimeKeepalivePop();
21130
21234
  callUserCallback(() =>
21131
- ((a1) => {})(
21132
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ userData
21235
+ ((
21236
+ a1
21237
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21238
+ userData
21133
21239
  )
21134
21240
  );
21135
21241
  });
@@ -21146,8 +21252,10 @@ export function init(RuntimeName, PHPLoader) {
21146
21252
  function tick() {
21147
21253
  callUserCallback(() => {
21148
21254
  if (
21149
- ((a1) => {})(
21150
- /* a dynamic function call to signature ii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ userData
21255
+ ((
21256
+ a1
21257
+ ) => {}) /* a dynamic function call to signature ii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21258
+ userData
21151
21259
  )
21152
21260
  ) {
21153
21261
  emSetImmediate(tick);
@@ -21164,8 +21272,10 @@ export function init(RuntimeName, PHPLoader) {
21164
21272
  var _emscripten_set_timeout = (cb, msecs, userData) =>
21165
21273
  safeSetTimeout(
21166
21274
  () =>
21167
- ((a1) => {})(
21168
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ userData
21275
+ ((
21276
+ a1
21277
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21278
+ userData
21169
21279
  ),
21170
21280
  msecs
21171
21281
  );
@@ -21181,8 +21291,11 @@ export function init(RuntimeName, PHPLoader) {
21181
21291
  runtimeKeepalivePop();
21182
21292
  callUserCallback(() => {
21183
21293
  if (
21184
- ((a1, a2) => {})(
21185
- /* a dynamic function call to signature idi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ t,
21294
+ ((
21295
+ a1,
21296
+ a2
21297
+ ) => {}) /* a dynamic function call to signature idi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21298
+ t,
21186
21299
  userData
21187
21300
  )
21188
21301
  ) {
@@ -21206,8 +21319,10 @@ export function init(RuntimeName, PHPLoader) {
21206
21319
  runtimeKeepalivePush();
21207
21320
  return setInterval(() => {
21208
21321
  callUserCallback(() =>
21209
- ((a1) => {})(
21210
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ userData
21322
+ ((
21323
+ a1
21324
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21325
+ userData
21211
21326
  )
21212
21327
  );
21213
21328
  }, msecs);
@@ -21222,8 +21337,10 @@ export function init(RuntimeName, PHPLoader) {
21222
21337
 
21223
21338
  var _emscripten_async_call = (func, arg, millis) => {
21224
21339
  var wrapper = () =>
21225
- ((a1) => {})(
21226
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
21340
+ ((
21341
+ a1
21342
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21343
+ arg
21227
21344
  );
21228
21345
 
21229
21346
  if (
@@ -21256,7 +21373,7 @@ export function init(RuntimeName, PHPLoader) {
21256
21373
 
21257
21374
  var _emscripten_set_main_loop = (func, fps, simulateInfiniteLoop) => {
21258
21375
  var iterFunc =
21259
- () => {}; /* a dynamic function call to signature v, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */
21376
+ () => {} /* a dynamic function call to signature v, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */;
21260
21377
  setMainLoop(iterFunc, fps, simulateInfiniteLoop);
21261
21378
  };
21262
21379
  _emscripten_set_main_loop.sig = 'vpii';
@@ -21268,8 +21385,10 @@ export function init(RuntimeName, PHPLoader) {
21268
21385
  simulateInfiniteLoop
21269
21386
  ) => {
21270
21387
  var iterFunc = () =>
21271
- ((a1) => {})(
21272
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
21388
+ ((
21389
+ a1
21390
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21391
+ arg
21273
21392
  );
21274
21393
  setMainLoop(iterFunc, fps, simulateInfiniteLoop, arg);
21275
21394
  };
@@ -21290,8 +21409,10 @@ export function init(RuntimeName, PHPLoader) {
21290
21409
  var __emscripten_push_main_loop_blocker = (func, arg, name) => {
21291
21410
  MainLoop.queue.push({
21292
21411
  func: () => {
21293
- ((a1) => {})(
21294
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
21412
+ ((
21413
+ a1
21414
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21415
+ arg
21295
21416
  );
21296
21417
  },
21297
21418
  name: UTF8ToString(name),
@@ -21304,8 +21425,10 @@ export function init(RuntimeName, PHPLoader) {
21304
21425
  var __emscripten_push_uncounted_main_loop_blocker = (func, arg, name) => {
21305
21426
  MainLoop.queue.push({
21306
21427
  func: () => {
21307
- ((a1) => {})(
21308
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
21428
+ ((
21429
+ a1
21430
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21431
+ arg
21309
21432
  );
21310
21433
  },
21311
21434
  name: UTF8ToString(name),
@@ -21339,8 +21462,12 @@ export function init(RuntimeName, PHPLoader) {
21339
21462
  var resultPtr = stackAlloc(POINTER_SIZE);
21340
21463
  HEAPU32[resultPtr >> 2] = 0;
21341
21464
  try {
21342
- var result = ((a1, a2, a3) => {})(
21343
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ resultPtr,
21465
+ var result = ((
21466
+ a1,
21467
+ a2,
21468
+ a3
21469
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
21470
+ resultPtr,
21344
21471
  userData,
21345
21472
  value
21346
21473
  );
@@ -22177,15 +22304,19 @@ export function init(RuntimeName, PHPLoader) {
22177
22304
  () => {
22178
22305
  runtimeKeepalivePop();
22179
22306
  if (onload)
22180
- ((a1) => {})(
22181
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ file
22307
+ ((
22308
+ a1
22309
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22310
+ file
22182
22311
  );
22183
22312
  },
22184
22313
  () => {
22185
22314
  runtimeKeepalivePop();
22186
22315
  if (onerror)
22187
- ((a1) => {})(
22188
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ file
22316
+ ((
22317
+ a1
22318
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22319
+ file
22189
22320
  );
22190
22321
  },
22191
22322
  true // don'tCreateFile - it's already there
@@ -22219,16 +22350,21 @@ export function init(RuntimeName, PHPLoader) {
22219
22350
  () => {
22220
22351
  runtimeKeepalivePop();
22221
22352
  if (onload)
22222
- ((a1, a2) => {})(
22223
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg,
22353
+ ((
22354
+ a1,
22355
+ a2
22356
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22357
+ arg,
22224
22358
  cname
22225
22359
  );
22226
22360
  },
22227
22361
  () => {
22228
22362
  runtimeKeepalivePop();
22229
22363
  if (onerror)
22230
- ((a1) => {})(
22231
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
22364
+ ((
22365
+ a1
22366
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22367
+ arg
22232
22368
  );
22233
22369
  },
22234
22370
  true // don'tCreateFile - it's already there
@@ -22496,10 +22632,10 @@ export function init(RuntimeName, PHPLoader) {
22496
22632
  runtimeKeepalivePop();
22497
22633
  callUserCallback(() =>
22498
22634
  withStackSave(() =>
22499
- ((a1) => {})(
22500
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ stringToUTF8OnStack(
22501
- _file
22502
- )
22635
+ ((
22636
+ a1
22637
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22638
+ stringToUTF8OnStack(_file)
22503
22639
  )
22504
22640
  )
22505
22641
  );
@@ -22543,8 +22679,12 @@ export function init(RuntimeName, PHPLoader) {
22543
22679
  callUserCallback(() => {
22544
22680
  var buffer = _malloc(byteArray.length);
22545
22681
  HEAPU8.set(byteArray, buffer);
22546
- ((a1, a2, a3) => {})(
22547
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ userdata,
22682
+ ((
22683
+ a1,
22684
+ a2,
22685
+ a3
22686
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22687
+ userdata,
22548
22688
  buffer,
22549
22689
  byteArray.length
22550
22690
  );
@@ -22554,8 +22694,10 @@ export function init(RuntimeName, PHPLoader) {
22554
22694
  if (onerror) {
22555
22695
  runtimeKeepalivePop();
22556
22696
  callUserCallback(() => {
22557
- ((a1) => {})(
22558
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ userdata
22697
+ ((
22698
+ a1
22699
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22700
+ userdata
22559
22701
  );
22560
22702
  });
22561
22703
  }
@@ -22611,8 +22753,12 @@ export function init(RuntimeName, PHPLoader) {
22611
22753
  );
22612
22754
  if (onload) {
22613
22755
  var sp = stackSave();
22614
- ((a1, a2, a3) => {})(
22615
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
22756
+ ((
22757
+ a1,
22758
+ a2,
22759
+ a3
22760
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22761
+ handle,
22616
22762
  userdata,
22617
22763
  stringToUTF8OnStack(_file)
22618
22764
  );
@@ -22620,8 +22766,12 @@ export function init(RuntimeName, PHPLoader) {
22620
22766
  }
22621
22767
  } else {
22622
22768
  if (onerror)
22623
- ((a1, a2, a3) => {})(
22624
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
22769
+ ((
22770
+ a1,
22771
+ a2,
22772
+ a3
22773
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22774
+ handle,
22625
22775
  userdata,
22626
22776
  http.status
22627
22777
  );
@@ -22634,8 +22784,12 @@ export function init(RuntimeName, PHPLoader) {
22634
22784
  http.onerror = (e) => {
22635
22785
  runtimeKeepalivePop();
22636
22786
  if (onerror)
22637
- ((a1, a2, a3) => {})(
22638
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
22787
+ ((
22788
+ a1,
22789
+ a2,
22790
+ a3
22791
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22792
+ handle,
22639
22793
  userdata,
22640
22794
  http.status
22641
22795
  );
@@ -22650,8 +22804,12 @@ export function init(RuntimeName, PHPLoader) {
22650
22804
  ) {
22651
22805
  var percentComplete = (e.loaded / e.total) * 100;
22652
22806
  if (onprogress)
22653
- ((a1, a2, a3) => {})(
22654
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
22807
+ ((
22808
+ a1,
22809
+ a2,
22810
+ a3
22811
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22812
+ handle,
22655
22813
  userdata,
22656
22814
  percentComplete
22657
22815
  );
@@ -22708,8 +22866,13 @@ export function init(RuntimeName, PHPLoader) {
22708
22866
  if (http.statusText) {
22709
22867
  statusText = stringToUTF8OnStack(http.statusText);
22710
22868
  }
22711
- ((a1, a2, a3, a4) => {})(
22712
- /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
22869
+ ((
22870
+ a1,
22871
+ a2,
22872
+ a3,
22873
+ a4
22874
+ ) => {}) /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22875
+ handle,
22713
22876
  userdata,
22714
22877
  http.status,
22715
22878
  statusText
@@ -22730,8 +22893,13 @@ export function init(RuntimeName, PHPLoader) {
22730
22893
  var buffer = _malloc(byteArray.length);
22731
22894
  HEAPU8.set(byteArray, buffer);
22732
22895
  if (onload)
22733
- ((a1, a2, a3, a4) => {})(
22734
- /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
22896
+ ((
22897
+ a1,
22898
+ a2,
22899
+ a3,
22900
+ a4
22901
+ ) => {}) /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22902
+ handle,
22735
22903
  userdata,
22736
22904
  buffer,
22737
22905
  byteArray.length
@@ -22752,8 +22920,13 @@ export function init(RuntimeName, PHPLoader) {
22752
22920
  // PROGRESS
22753
22921
  http.onprogress = (e) => {
22754
22922
  if (onprogress)
22755
- ((a1, a2, a3, a4) => {})(
22756
- /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ handle,
22923
+ ((
22924
+ a1,
22925
+ a2,
22926
+ a3,
22927
+ a4
22928
+ ) => {}) /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
22929
+ handle,
22757
22930
  userdata,
22758
22931
  e.loaded,
22759
22932
  e.lengthComputable || e.lengthComputable === undefined
@@ -23084,16 +23257,24 @@ export function init(RuntimeName, PHPLoader) {
23084
23257
  if (event === 'error') {
23085
23258
  withStackSave(() => {
23086
23259
  var msg = stringToUTF8OnStack(data[2]);
23087
- ((a1, a2, a3, a4) => {})(
23088
- /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ data[0],
23260
+ ((
23261
+ a1,
23262
+ a2,
23263
+ a3,
23264
+ a4
23265
+ ) => {}) /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
23266
+ data[0],
23089
23267
  data[1],
23090
23268
  msg,
23091
23269
  userData
23092
23270
  );
23093
23271
  });
23094
23272
  } else {
23095
- ((a1, a2) => {})(
23096
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ data,
23273
+ ((
23274
+ a1,
23275
+ a2
23276
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
23277
+ data,
23097
23278
  userData
23098
23279
  );
23099
23280
  }
@@ -24046,8 +24227,12 @@ export function init(RuntimeName, PHPLoader) {
24046
24227
  ) => {
24047
24228
  var webGlEventHandlerFunc = (e = event) => {
24048
24229
  if (
24049
- ((a1, a2, a3) => {})(
24050
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ eventTypeId,
24230
+ ((
24231
+ a1,
24232
+ a2,
24233
+ a3
24234
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24235
+ eventTypeId,
24051
24236
  0,
24052
24237
  userData
24053
24238
  )
@@ -24266,15 +24451,21 @@ export function init(RuntimeName, PHPLoader) {
24266
24451
  ) {
24267
24452
  event.preventDefault();
24268
24453
  GLUT.saveModifiers(event);
24269
- ((a1, a2) => {})(
24270
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ lastX,
24454
+ ((
24455
+ a1,
24456
+ a2
24457
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24458
+ lastX,
24271
24459
  lastY
24272
24460
  );
24273
24461
  } else if (GLUT.buttons != 0 && GLUT.motionFunc) {
24274
24462
  event.preventDefault();
24275
24463
  GLUT.saveModifiers(event);
24276
- ((a1, a2) => {})(
24277
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ lastX,
24464
+ ((
24465
+ a1,
24466
+ a2
24467
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24468
+ lastX,
24278
24469
  lastY
24279
24470
  );
24280
24471
  }
@@ -24435,8 +24626,12 @@ export function init(RuntimeName, PHPLoader) {
24435
24626
  if (GLUT.specialFunc) {
24436
24627
  event.preventDefault();
24437
24628
  GLUT.saveModifiers(event);
24438
- ((a1, a2, a3) => {})(
24439
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ key,
24629
+ ((
24630
+ a1,
24631
+ a2,
24632
+ a3
24633
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24634
+ key,
24440
24635
  Browser.mouseX,
24441
24636
  Browser.mouseY
24442
24637
  );
@@ -24446,8 +24641,12 @@ export function init(RuntimeName, PHPLoader) {
24446
24641
  if (key !== null && GLUT.keyboardFunc) {
24447
24642
  event.preventDefault();
24448
24643
  GLUT.saveModifiers(event);
24449
- ((a1, a2, a3) => {})(
24450
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ key,
24644
+ ((
24645
+ a1,
24646
+ a2,
24647
+ a3
24648
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24649
+ key,
24451
24650
  Browser.mouseX,
24452
24651
  Browser.mouseY
24453
24652
  );
@@ -24462,8 +24661,12 @@ export function init(RuntimeName, PHPLoader) {
24462
24661
  if (GLUT.specialUpFunc) {
24463
24662
  event.preventDefault();
24464
24663
  GLUT.saveModifiers(event);
24465
- ((a1, a2, a3) => {})(
24466
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ key,
24664
+ ((
24665
+ a1,
24666
+ a2,
24667
+ a3
24668
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24669
+ key,
24467
24670
  Browser.mouseX,
24468
24671
  Browser.mouseY
24469
24672
  );
@@ -24473,8 +24676,12 @@ export function init(RuntimeName, PHPLoader) {
24473
24676
  if (key !== null && GLUT.keyboardUpFunc) {
24474
24677
  event.preventDefault();
24475
24678
  GLUT.saveModifiers(event);
24476
- ((a1, a2, a3) => {})(
24477
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ key,
24679
+ ((
24680
+ a1,
24681
+ a2,
24682
+ a3
24683
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24684
+ key,
24478
24685
  Browser.mouseX,
24479
24686
  Browser.mouseY
24480
24687
  );
@@ -24538,10 +24745,13 @@ export function init(RuntimeName, PHPLoader) {
24538
24745
  } catch (e) {}
24539
24746
  event.preventDefault();
24540
24747
  GLUT.saveModifiers(event);
24541
- ((a1, a2, a3, a4) => {})(
24542
- /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ event[
24543
- 'button'
24544
- ],
24748
+ ((
24749
+ a1,
24750
+ a2,
24751
+ a3,
24752
+ a4
24753
+ ) => {}) /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24754
+ event['button'],
24545
24755
  0 /*GLUT_DOWN*/,
24546
24756
  Browser.mouseX,
24547
24757
  Browser.mouseY
@@ -24556,10 +24766,13 @@ export function init(RuntimeName, PHPLoader) {
24556
24766
  if (GLUT.mouseFunc) {
24557
24767
  event.preventDefault();
24558
24768
  GLUT.saveModifiers(event);
24559
- ((a1, a2, a3, a4) => {})(
24560
- /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ event[
24561
- 'button'
24562
- ],
24769
+ ((
24770
+ a1,
24771
+ a2,
24772
+ a3,
24773
+ a4
24774
+ ) => {}) /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24775
+ event['button'],
24563
24776
  1 /*GLUT_UP*/,
24564
24777
  Browser.mouseX,
24565
24778
  Browser.mouseY
@@ -24588,8 +24801,13 @@ export function init(RuntimeName, PHPLoader) {
24588
24801
  if (GLUT.mouseFunc) {
24589
24802
  event.preventDefault();
24590
24803
  GLUT.saveModifiers(event);
24591
- ((a1, a2, a3, a4) => {})(
24592
- /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ button,
24804
+ ((
24805
+ a1,
24806
+ a2,
24807
+ a3,
24808
+ a4
24809
+ ) => {}) /* a dynamic function call to signature viiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24810
+ button,
24593
24811
  0 /*GLUT_DOWN*/,
24594
24812
  Browser.mouseX,
24595
24813
  Browser.mouseY
@@ -24627,8 +24845,11 @@ export function init(RuntimeName, PHPLoader) {
24627
24845
  /* Can't call _glutReshapeWindow as that requests cancelling fullscreen. */
24628
24846
  if (GLUT.reshapeFunc) {
24629
24847
  // out("GLUT.reshapeFunc (from FS): " + width + ", " + height);
24630
- ((a1, a2) => {})(
24631
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ width,
24848
+ ((
24849
+ a1,
24850
+ a2
24851
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24852
+ width,
24632
24853
  height
24633
24854
  );
24634
24855
  }
@@ -24684,8 +24905,11 @@ export function init(RuntimeName, PHPLoader) {
24684
24905
  // Resize callback stage 2: updateResizeListeners notifies reshapeFunc
24685
24906
  Browser.resizeListeners.push((width, height) => {
24686
24907
  if (GLUT.reshapeFunc) {
24687
- ((a1, a2) => {})(
24688
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ width,
24908
+ ((
24909
+ a1,
24910
+ a2
24911
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
24912
+ width,
24689
24913
  height
24690
24914
  );
24691
24915
  }
@@ -24800,8 +25024,10 @@ export function init(RuntimeName, PHPLoader) {
24800
25024
  var _glutTimerFunc = (msec, func, value) =>
24801
25025
  safeSetTimeout(
24802
25026
  () =>
24803
- ((a1) => {})(
24804
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ value
25027
+ ((
25028
+ a1
25029
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
25030
+ value
24805
25031
  ),
24806
25032
  msec
24807
25033
  );
@@ -24961,8 +25187,11 @@ export function init(RuntimeName, PHPLoader) {
24961
25187
  Browser.setCanvasSize(width, height, true); // N.B. GLUT.reshapeFunc is also registered as a canvas resize callback.
24962
25188
  // Just call it once here.
24963
25189
  if (GLUT.reshapeFunc) {
24964
- ((a1, a2) => {})(
24965
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ width,
25190
+ ((
25191
+ a1,
25192
+ a2
25193
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
25194
+ width,
24966
25195
  height
24967
25196
  );
24968
25197
  }
@@ -26016,15 +26245,21 @@ export function init(RuntimeName, PHPLoader) {
26016
26245
  callUserCallback(() => {
26017
26246
  if (error) {
26018
26247
  if (onerror)
26019
- ((a1) => {})(
26020
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26248
+ ((
26249
+ a1
26250
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26251
+ arg
26021
26252
  );
26022
26253
  return;
26023
26254
  }
26024
26255
  var buffer = _malloc(byteArray.length);
26025
26256
  HEAPU8.set(byteArray, buffer);
26026
- ((a1, a2, a3) => {})(
26027
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg,
26257
+ ((
26258
+ a1,
26259
+ a2,
26260
+ a3
26261
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26262
+ arg,
26028
26263
  buffer,
26029
26264
  byteArray.length
26030
26265
  );
@@ -26056,14 +26291,18 @@ export function init(RuntimeName, PHPLoader) {
26056
26291
  callUserCallback(() => {
26057
26292
  if (error) {
26058
26293
  if (onerror)
26059
- ((a1) => {})(
26060
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26294
+ ((
26295
+ a1
26296
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26297
+ arg
26061
26298
  );
26062
26299
  return;
26063
26300
  }
26064
26301
  if (onstore)
26065
- ((a1) => {})(
26066
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26302
+ ((
26303
+ a1
26304
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26305
+ arg
26067
26306
  );
26068
26307
  });
26069
26308
  }
@@ -26078,14 +26317,18 @@ export function init(RuntimeName, PHPLoader) {
26078
26317
  callUserCallback(() => {
26079
26318
  if (error) {
26080
26319
  if (onerror)
26081
- ((a1) => {})(
26082
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26320
+ ((
26321
+ a1
26322
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26323
+ arg
26083
26324
  );
26084
26325
  return;
26085
26326
  }
26086
26327
  if (ondelete)
26087
- ((a1) => {})(
26088
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26328
+ ((
26329
+ a1
26330
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26331
+ arg
26089
26332
  );
26090
26333
  });
26091
26334
  });
@@ -26102,14 +26345,19 @@ export function init(RuntimeName, PHPLoader) {
26102
26345
  callUserCallback(() => {
26103
26346
  if (error) {
26104
26347
  if (onerror)
26105
- ((a1) => {})(
26106
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26348
+ ((
26349
+ a1
26350
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26351
+ arg
26107
26352
  );
26108
26353
  return;
26109
26354
  }
26110
26355
  if (oncheck)
26111
- ((a1, a2) => {})(
26112
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg,
26356
+ ((
26357
+ a1,
26358
+ a2
26359
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26360
+ arg,
26113
26361
  exists
26114
26362
  );
26115
26363
  });
@@ -26125,14 +26373,18 @@ export function init(RuntimeName, PHPLoader) {
26125
26373
  callUserCallback(() => {
26126
26374
  if (error) {
26127
26375
  if (onerror)
26128
- ((a1) => {})(
26129
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26376
+ ((
26377
+ a1
26378
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26379
+ arg
26130
26380
  );
26131
26381
  return;
26132
26382
  }
26133
26383
  if (onclear)
26134
- ((a1) => {})(
26135
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ arg
26384
+ ((
26385
+ a1
26386
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26387
+ arg
26136
26388
  );
26137
26389
  });
26138
26390
  });
@@ -26289,8 +26541,11 @@ export function init(RuntimeName, PHPLoader) {
26289
26541
  safeSetTimeout(() => {
26290
26542
  var stackBegin = Asyncify.currData + 12;
26291
26543
  var stackEnd = HEAPU32[Asyncify.currData >> 2];
26292
- ((a1, a2) => {})(
26293
- /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ stackBegin,
26544
+ ((
26545
+ a1,
26546
+ a2
26547
+ ) => {}) /* a dynamic function call to signature vii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26548
+ stackBegin,
26294
26549
  stackEnd
26295
26550
  );
26296
26551
  wakeUp();
@@ -26339,8 +26594,10 @@ export function init(RuntimeName, PHPLoader) {
26339
26594
  HEAPU32[(newFiber + 12) >> 2] = 0;
26340
26595
 
26341
26596
  var userData = HEAPU32[(newFiber + 16) >> 2];
26342
- ((a1) => {})(
26343
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ userData
26597
+ ((
26598
+ a1
26599
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
26600
+ userData
26344
26601
  );
26345
26602
  } else {
26346
26603
  var asyncifyData = newFiber + 20;
@@ -27351,8 +27608,11 @@ export function init(RuntimeName, PHPLoader) {
27351
27608
  if (!SDL.eventHandler) return;
27352
27609
 
27353
27610
  while (SDL.pollEvent(SDL.eventHandlerTemp)) {
27354
- ((a1, a2) => {})(
27355
- /* a dynamic function call to signature iii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ SDL.eventHandlerContext,
27611
+ ((
27612
+ a1,
27613
+ a2
27614
+ ) => {}) /* a dynamic function call to signature iii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
27615
+ SDL.eventHandlerContext,
27356
27616
  SDL.eventHandlerTemp
27357
27617
  );
27358
27618
  }
@@ -28976,9 +29236,12 @@ export function init(RuntimeName, PHPLoader) {
28976
29236
  return;
28977
29237
 
28978
29238
  // Ask SDL audio data from the user code.
28979
- ((a1, a2, a3) => {})(
28980
- /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ SDL
28981
- .audio.userdata,
29239
+ ((
29240
+ a1,
29241
+ a2,
29242
+ a3
29243
+ ) => {}) /* a dynamic function call to signature viii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
29244
+ SDL.audio.userdata,
28982
29245
  SDL.audio.buffer,
28983
29246
  SDL.audio.bufferSize
28984
29247
  );
@@ -29436,8 +29699,10 @@ export function init(RuntimeName, PHPLoader) {
29436
29699
  info.audio = null;
29437
29700
  }
29438
29701
  if (SDL.channelFinished) {
29439
- ((a1) => {})(
29440
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ channel
29702
+ ((
29703
+ a1
29704
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
29705
+ channel
29441
29706
  );
29442
29707
  }
29443
29708
  }
@@ -29505,8 +29770,10 @@ export function init(RuntimeName, PHPLoader) {
29505
29770
  channelInfo.audio = null;
29506
29771
  }
29507
29772
  if (SDL.channelFinished)
29508
- ((a1) => {})(
29509
- /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ channel
29773
+ ((
29774
+ a1
29775
+ ) => {}) /* a dynamic function call to signature vi, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
29776
+ channel
29510
29777
  );
29511
29778
  };
29512
29779
  if (channelInfo.audio) {
@@ -30241,8 +30508,11 @@ export function init(RuntimeName, PHPLoader) {
30241
30508
  var _SDL_AddTimer = (interval, callback, param) =>
30242
30509
  safeSetTimeout(
30243
30510
  () =>
30244
- ((a1, a2) => {})(
30245
- /* a dynamic function call to signature iii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ interval,
30511
+ ((
30512
+ a1,
30513
+ a2
30514
+ ) => {}) /* a dynamic function call to signature iii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
30515
+ interval,
30246
30516
  param
30247
30517
  ),
30248
30518
  interval
@@ -30656,8 +30926,12 @@ export function init(RuntimeName, PHPLoader) {
30656
30926
 
30657
30927
  socket.onopen = function (e) {
30658
30928
  var eventPtr = WS.getSocketEvent(socketId);
30659
- ((a1, a2, a3) => {})(
30660
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 0 /*TODO*/,
30929
+ ((
30930
+ a1,
30931
+ a2,
30932
+ a3
30933
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
30934
+ 0 /*TODO*/,
30661
30935
  eventPtr,
30662
30936
  userData
30663
30937
  );
@@ -30679,8 +30953,12 @@ export function init(RuntimeName, PHPLoader) {
30679
30953
 
30680
30954
  socket.onerror = function (e) {
30681
30955
  var eventPtr = WS.getSocketEvent(socketId);
30682
- ((a1, a2, a3) => {})(
30683
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 0 /*TODO*/,
30956
+ ((
30957
+ a1,
30958
+ a2,
30959
+ a3
30960
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
30961
+ 0 /*TODO*/,
30684
30962
  eventPtr,
30685
30963
  userData
30686
30964
  );
@@ -30705,8 +30983,12 @@ export function init(RuntimeName, PHPLoader) {
30705
30983
  ((HEAP8[eventPtr + 4] = e.wasClean),
30706
30984
  (HEAP16[(eventPtr + 6) >> 1] = e.code),
30707
30985
  stringToUTF8(e.reason, eventPtr + 8, 512));
30708
- ((a1, a2, a3) => {})(
30709
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 0 /*TODO*/,
30986
+ ((
30987
+ a1,
30988
+ a2,
30989
+ a3
30990
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
30991
+ 0 /*TODO*/,
30710
30992
  eventPtr,
30711
30993
  userData
30712
30994
  );
@@ -30740,8 +31022,12 @@ export function init(RuntimeName, PHPLoader) {
30740
31022
  ((HEAPU32[(eventPtr + 4) >> 2] = buf),
30741
31023
  (HEAP32[(eventPtr + 8) >> 2] = len),
30742
31024
  (HEAP8[eventPtr + 12] = isText),
30743
- ((a1, a2, a3) => {})(
30744
- /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */ 0 /*TODO*/,
31025
+ ((
31026
+ a1,
31027
+ a2,
31028
+ a3
31029
+ ) => {}) /* a dynamic function call to signature iiii, but there are no exported function pointers with that signature, so this path should never be taken. Build with ASSERTIONS enabled to validate. */(
31030
+ 0 /*TODO*/,
30745
31031
  eventPtr,
30746
31032
  userData
30747
31033
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/node-8-3",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "PHP 8.3 WebAssembly binaries for node",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,12 +35,12 @@
35
35
  "node": ">=20.10.0",
36
36
  "npm": ">=10.2.3"
37
37
  },
38
- "gitHead": "71560d81fcde96435d5730a0430abcafaa6f92b8",
38
+ "gitHead": "54bb87ba4c9624ec02f60194a2f1938b3f42477b",
39
39
  "dependencies": {
40
40
  "ini": "4.1.2",
41
41
  "wasm-feature-detect": "1.8.0",
42
42
  "ws": "8.18.3",
43
- "@php-wasm/universal": "3.1.1"
43
+ "@php-wasm/universal": "3.1.3"
44
44
  },
45
45
  "packageManager": "npm@10.9.2",
46
46
  "overrides": {