Skip to content

Instantly share code, notes, and snippets.

@gx0r
Last active January 9, 2016 00:29
Show Gist options
  • Select an option

  • Save gx0r/73484233e4f33e1f24e6 to your computer and use it in GitHub Desktop.

Select an option

Save gx0r/73484233e4f33e1f24e6 to your computer and use it in GitHub Desktop.
v8 vs bluebird
------
built in rejection:
Promise.reject(new Error('ether'))
(no error console output with V8 promise rejection, nothing shown on screen, no non-zero exit code on process, etc.)
--------
Promise = require('bluebird')
Promise.reject(new Error('hi'))
Unhandled rejection Error: hi
at Object.<anonymous> (prom.js:2:16)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:1003:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment