PATH:
usr
/
local
/
n
/
versions
/
node
/
12.14.1
/
lib
/
node_modules
/
npm
/
node_modules
/
bluebird
/
js
/
release
"use strict"; module.exports = function(NEXT_FILTER) { var util = require("./util"); var getKeys = require("./es5").keys; var tryCatch = util.tryCatch; var errorObj = util.errorObj; function catchFilter(instances, cb, promise) { return function(e) { var boundTo = promise._boundValue(); predicateLoop: for (var i = 0; i < instances.length; ++i) { var item = instances[i]; if (item === Error || (item != null && item.prototype instanceof Error)) { if (e instanceof item) { return tryCatch(cb).call(boundTo, e); } } else if (typeof item === "function") { var matchesPredicate = tryCatch(item).call(boundTo, e); if (matchesPredicate === errorObj) { return matchesPredicate; } else if (matchesPredicate) { return tryCatch(cb).call(boundTo, e); } } else if (util.isObject(e)) { var keys = getKeys(item); for (var j = 0; j < keys.length; ++j) { var key = keys[j]; if (item[key] != e[key]) { continue predicateLoop; } } return tryCatch(cb).call(boundTo, e); } } return NEXT_FILTER; }; } return catchFilter; };
[-] bind.js
[edit]
[-] thenables.js
[edit]
[-] promise.js
[edit]
[-] context.js
[edit]
[-] direct_resolve.js
[edit]
[-] using.js
[edit]
[-] synchronous_inspection.js
[edit]
[-] cancel.js
[edit]
[-] errors.js
[edit]
[-] method.js
[edit]
[-] generators.js
[edit]
[-] reduce.js
[edit]
[-] nodeify.js
[edit]
[+]
..
[-] promise_array.js
[edit]
[-] queue.js
[edit]
[-] es5.js
[edit]
[-] some.js
[edit]
[-] call_get.js
[edit]
[-] catch_filter.js
[edit]
[-] schedule.js
[edit]
[-] util.js
[edit]
[-] async.js
[edit]
[-] race.js
[edit]
[-] settle.js
[edit]
[-] timers.js
[edit]
[-] any.js
[edit]
[-] map.js
[edit]
[-] join.js
[edit]
[-] filter.js
[edit]
[-] props.js
[edit]
[-] each.js
[edit]
[-] nodeback.js
[edit]
[-] debuggability.js
[edit]
[-] bluebird.js
[edit]
[-] assert.js
[edit]
[-] promisify.js
[edit]
[-] finally.js
[edit]