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