(byteArray)
| 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) { |
no test coverage detected