()
| 1458 | }; |
| 1459 | |
| 1460 | function callMain() { |
| 1461 | assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'); |
| 1462 | assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called'); |
| 1463 | |
| 1464 | var entryFunction = _main; |
| 1465 | |
| 1466 | var argc = 0; |
| 1467 | var argv = 0; |
| 1468 | |
| 1469 | try { |
| 1470 | |
| 1471 | var ret = entryFunction(argc, argv); |
| 1472 | |
| 1473 | // if we're not running an evented main loop, it's time to exit |
| 1474 | exitJS(ret, /* implicit = */ true); |
| 1475 | return ret; |
| 1476 | } |
| 1477 | catch (e) { |
| 1478 | return handleException(e); |
| 1479 | } |
| 1480 | } |
| 1481 | |
| 1482 | function stackCheckInit() { |
| 1483 | // This is normally called automatically during __wasm_call_ctors but need to |
no test coverage detected