Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var errbacksStringsAsync = Promise.promisify(function(cb){
- setTimeout(function(){
- cb("Where is your stack now?");
- }, 13);
- });
- errbacksStringsAsync().catch(function(e){
- console.error(e.stack)
- });
- ## Gives good stack:
- Error: Where is your stack now?
- at maybeWrapAsError (c:\Users\Petka Antonov\bluebird\js\bluebird_debug.js:148:12)
- at null._onTimeout (c:\Users\Petka Antonov\bluebird\test\mocha\promisify.js:61:9)
- at Timer.listOnTimeout (timers.js:107:15)
- From previous event:
- at Context.<anonymous> (c:\Users\Petka Antonov\bluebird\test\mocha\promisify.js:380:13)
- at Test.Runnable.run (c:\Users\Petka Antonov\bluebird\node_modules\mocha\lib\runnable.js:194:15)
- at Runner.runTest (c:\Users\Petka Antonov\bluebird\node_modules\mocha\lib\runner.js:355:10)
- at c:\Users\Petka Antonov\bluebird\node_modules\mocha\lib\runner.js:401:12
- at next (c:\Users\Petka Antonov\bluebird\node_modules\mocha\lib\runner.js:281:14)
- at c:\Users\Petka Antonov\bluebird\node_modules\mocha\lib\runner.js:290:7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement