Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Witchcraft error catching #716

Closed
wants to merge 5 commits into from
Closed

Conversation

kpsuperplane
Copy link
Contributor

You might need to rewrite a lot of the error stuff to work with this..

@e45lee
Copy link
Contributor

e45lee commented Mar 24, 2017

Can you merge origin react into your branch and repair the merge? Thanks.

@yuliswe
Copy link
Contributor

yuliswe commented Mar 24, 2017

Hi, can you make GenericError extend Error? Otherwise npm test / browsers will not show the stacktrace.

@kpsuperplane
Copy link
Contributor Author

Doing so makes instance of not work. Not sure whu

@e45lee
Copy link
Contributor

e45lee commented Mar 24, 2017

Try this: microsoft/TypeScript#13965

@e45lee
Copy link
Contributor

e45lee commented Mar 24, 2017

@kpsuperplane Pull from e45lee/error-handling-fixes

@e45lee
Copy link
Contributor

e45lee commented Mar 24, 2017

OK I'm going to merge your branch with the Error handling fixed so I'll close this for now.

@e45lee e45lee closed this Mar 24, 2017
@e45lee e45lee mentioned this pull request Mar 24, 2017
super(message);
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

So what's the point of this class? It just sets __proto__ to Error?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a fix to repair the prototype chain so instanceof works properly. See #721.

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.

None yet

3 participants