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

Add cross-frame compatible Error checking for fail #1758

Merged
merged 1 commit into from Jun 28, 2015

Conversation

outdooricon
Copy link
Contributor

When passing errors through between frames, AssertionErrors and the like will fail an instanceof check against Error. We need a compatible check. According to Mozilla Error Docs, Error prototype will always have message defined.

All tests pass: https://travis-ci.org/outdooricon/mocha/builds/67555897

It's worth noting that this currently prevents us from upgrading the Konacha project to use latest Mocha.

@jbenner
Copy link

jbenner commented Jun 22, 2015

👍 this has been an issue for me as well

@danielstjules
Copy link
Contributor

Looks good, thanks!

danielstjules added a commit that referenced this pull request Jun 28, 2015
Add cross-frame compatible Error checking for fail
@danielstjules danielstjules merged commit 3b02d83 into mochajs:master Jun 28, 2015
@outdooricon
Copy link
Contributor Author

@danielstjules Do you know when the next patch version of Mocha is scheduled for release? Just wondering for when I can fix Konacha with this...

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

4 participants