MCPcopy
hub / github.com/Pradumnasaraf/DevOps / callMain

Function callMain

docs/webassembly/files/apps/hello-world/hello.js:1460–1480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1458};
1459
1460function 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
1482function stackCheckInit() {
1483 // This is normally called automatically during __wasm_call_ctors but need to

Callers 1

doRunFunction · 0.85

Calls 3

assertFunction · 0.85
exitJSFunction · 0.85
handleExceptionFunction · 0.85

Tested by

no test coverage detected