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

Return true from window.onerror handler #868

Merged
merged 1 commit into from
Dec 7, 2013

Conversation

jfirebaugh
Copy link
Contributor

Mocha's own error reporter will report the error; it shouldn't be printed to
the console, trigger an error badge on the Firebug toolbar button, etc.

Mocha's own error reporter will report the error; it shouldn't
be printed to the console, trigger an error badge on the Firebug
toolbar button, etc.
jfirebaugh added a commit to jfirebaugh/konacha that referenced this pull request May 27, 2013
This should be handled by mochajs/mocha#868, but
PhantomJS probably still has a version of WebKit with
https://bugs.webkit.org/show_bug.cgi?id=67119
@bitwiseman
Copy link
Contributor

👍

@travisjeffery
Copy link
Contributor

@jfirebaugh makes sense, though I'm unable to reproduce this. i'm running mocha's browser tests (https://github.com/visionmedia/mocha/blob/master/test/browser/index.html) in firefox with firebug to show errors, https://github.com/visionmedia/mocha/blob/master/test/browser/array.js#L29 fails. yet the error doesn't bubble up. i even threw throw new Error("shit") above that line and was still ok. ?

travisjeffery pushed a commit that referenced this pull request Dec 7, 2013
Return true from window.onerror handler
@travisjeffery travisjeffery merged commit b9b7355 into mochajs:master Dec 7, 2013
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