Node-bunyan: Error.captureStackTrace is not a function in firefox

Created on 5 Feb 2015  路  2Comments  路  Source: trentm/node-bunyan

Erraneous code:

https://github.com/trentm/node-bunyan/blob/master/lib/bunyan.js#L143

I didn't take the time to check out what captureStackTrace does exactly to find if any other code depended on it. In my fork I'm just wrapping it which seems to work fine:

if (typeof Error.captureStackTrace === 'function') {
  // capture the stack
}

Again, firefox 35.0.1 on ubuntu 14.10

needstriage Type-Bug Component-LibBrowser

Most helpful comment

still seeing it on FF 45.0

All 2 comments

still seeing it on FF 45.0

ended up here while dealing with Firefox issue, since it doesn't have Error.captureStackTrace.

Error().stack works universally.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronkorving picture ronkorving  路  5Comments

yelworc picture yelworc  路  5Comments

raine picture raine  路  4Comments

ghost picture ghost  路  4Comments

mickaeltr picture mickaeltr  路  7Comments