MCPcopy Create free account
hub / github.com/sql-js/sql.js / run

Function run

js/sql-debug.js:403710–403753  ·  view source on GitHub ↗

@type {function(Array=)}

(args)

Source from the content-addressed store, hash-verified

403708
403709/** @type {function(Array=)} */
403710function run(args) {
403711 args = args || Module['arguments'];
403712
403713 if (preloadStartTime === null) preloadStartTime = Date.now();
403714
403715 if (runDependencies > 0) {
403716 return;
403717 }
403718
403719
403720 preRun();
403721
403722 if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
403723 if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
403724
403725 function doRun() {
403726 if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
403727 Module['calledRun'] = true;
403728
403729 if (ABORT) return;
403730
403731 ensureInitRuntime();
403732
403733 preMain();
403734
403735
403736 if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
403737
403738
403739 postRun();
403740 }
403741
403742 if (Module['setStatus']) {
403743 Module['setStatus']('Running...');
403744 setTimeout(function() {
403745 setTimeout(function() {
403746 Module['setStatus']('');
403747 }, 1);
403748 doRun();
403749 }, 1);
403750 } else {
403751 doRun();
403752 }
403753}
403754Module['run'] = run;
403755
403756function exit(status, implicit) {

Callers 1

sql-debug.jsFile · 0.70

Calls 2

preRunFunction · 0.70
doRunFunction · 0.70

Tested by

no test coverage detected