MCPcopy Index your code
hub / github.com/sql-js/sql.js / processData

Function processData

js/sql-debug.js:4349–4370  ·  view source on GitHub ↗
(byteArray)

Source from the content-addressed store, hash-verified

4347 var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
4348 var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
4349 function processData(byteArray) {
4350 function finish(byteArray) {
4351 if (preFinish) preFinish();
4352 if (!dontCreateFile) {
4353 FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
4354 }
4355 if (onload) onload();
4356 removeRunDependency(dep);
4357 }
4358 var handled = false;
4359 Module['preloadPlugins'].forEach(function(plugin) {
4360 if (handled) return;
4361 if (plugin['canHandle'](fullname)) {
4362 plugin['handle'](byteArray, fullname, finish, function() {
4363 if (onerror) onerror();
4364 removeRunDependency(dep);
4365 });
4366 handled = true;
4367 }
4368 });
4369 if (!handled) finish(byteArray);
4370 }
4371 addRunDependency(dep);
4372 if (typeof url == 'string') {
4373 Browser.asyncLoad(url, function(byteArray) {

Callers 1

sql-debug.jsFile · 0.70

Calls 2

removeRunDependencyFunction · 0.70
finishFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…