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

Function callRuntimeCallbacks

js/sql-debug.js:1207–1225  ·  view source on GitHub ↗
(callbacks)

Source from the content-addressed store, hash-verified

1205Module['HEAPF64'] = HEAPF64;
1206
1207function callRuntimeCallbacks(callbacks) {
1208 while(callbacks.length > 0) {
1209 var callback = callbacks.shift();
1210 if (typeof callback == 'function') {
1211 callback();
1212 continue;
1213 }
1214 var func = callback.func;
1215 if (typeof func === 'number') {
1216 if (callback.arg === undefined) {
1217 Module['dynCall_v'](func);
1218 } else {
1219 Module['dynCall_vi'](func, callback.arg);
1220 }
1221 } else {
1222 func(callback.arg === undefined ? null : callback.arg);
1223 }
1224 }
1225}
1226
1227var __ATPRERUN__ = []; // functions called before the runtime is initialized
1228var __ATINIT__ = []; // functions called during startup

Callers 5

preRunFunction · 0.70
ensureInitRuntimeFunction · 0.70
preMainFunction · 0.70
exitRuntimeFunction · 0.70
postRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…