MCPcopy Create free account
hub / github.com/nodejs/node / processData

Function processData

deps/v8/test/mjsunit/wasm/embenchen/zlib.js:3778–3798  ·  view source on GitHub ↗
(byteArray)

Source from the content-addressed store, hash-verified

3776 // of parent and name being that we just join them anyways
3777 var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
3778 function processData(byteArray) {
3779 function finish(byteArray) {
3780 if (!dontCreateFile) {
3781 FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
3782 }
3783 if (onload) onload();
3784 removeRunDependency('cp ' + fullname);
3785 }
3786 var handled = false;
3787 Module['preloadPlugins'].forEach(function(plugin) {
3788 if (handled) return;
3789 if (plugin['canHandle'](fullname)) {
3790 plugin['handle'](byteArray, fullname, finish, function() {
3791 if (onerror) onerror();
3792 removeRunDependency('cp ' + fullname);
3793 });
3794 handled = true;
3795 }
3796 });
3797 if (!handled) finish(byteArray);
3798 }
3799 addRunDependency('cp ' + fullname);
3800 if (typeof url == 'string') {
3801 Browser.asyncLoad(url, function(byteArray) {

Callers 1

zlib.jsFile · 0.70

Calls 4

removeRunDependencyFunction · 0.70
finishFunction · 0.70
forEachMethod · 0.65
onerrorFunction · 0.50

Tested by

no test coverage detected