You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when fromCallback (with multiArgs : true) callback function is
called without any arguments, like cb(), bluebird throws the following error:
Unhandled rejection RangeError: Invalid array length
at /app/available_modules/1459505274000/bluebird/js/release/nodeback.js:44:53
at fn1 (eval at <anonymous> (/app/index.js:715:19), <anonymous>:3:3)
at capture.Promise.fromCallback.multiArgs (eval at <anonymous> (/app/index.js:715:19), <anonymous>:36:7)
at tryCatcher (/app/available_modules/1459505274000/bluebird/js/release/util.js:16:23)
at Function.Promise.fromNode.Promise.fromCallback (/app/available_modules/1459505274000/bluebird/js/release/promise.js:176:30)
at eval (eval at <anonymous> (/app/index.js:715:19), <anonymous>:35:24)
at GeneratorFunctionPrototype.next (native)
at /app/index.js:573:32
at GeneratorFunctionPrototype.next (native)
at iterate (/app/index.js:587:77)
at module.exports (/app/index.js:601:19)
at eval (/app/index.js:697:5)
at Object.<anonymous> (/app/index.js:710:3)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
This doesn't happen neither if callback is called like cb(null), nor
when multiArgs is false.
Currently when fromCallback (with
multiArgs : true
) callback function iscalled without any arguments, like
cb()
, bluebird throws the following error:This doesn't happen neither if callback is called like
cb(null)
, norwhen multiArgs is false.
Here is a demonstration snippet:
https://tonicdev.com/56fd394c96866f11009cfcd1/56fe47f6a404b41100ae1aa5
The text was updated successfully, but these errors were encountered: