Skip to content

Conversation

@joovel
Copy link
Contributor

@joovel joovel commented Sep 27, 2017

No description provided.

Error.captureStackTrace(this, this.constructor);
if(Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious, have you investigated why this happens in Chrome? (it uses the same v8 as node). Could you take a look? Maybe we can improve the Error creation without this if.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the issue:

I've started testing my application outside of Chrome and started receiving the error

So my understanding is that this function is specific to V8, meaning it works Chrome and node and not FF and Safari.

Here are some options:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:( I misread it, it's simpler your approach. I'll approve, I'll wait for merging to see if we have more fixes before I release a patch version (I mean currently).

@ziluvatar ziluvatar merged commit 77ee965 into auth0:master Oct 9, 2017
@ziluvatar
Copy link
Contributor

Released on v8.1.0. 🎉 Thanks @joovel !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants