-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Node support for --allow-uncaught #2697
Conversation
Can anyone tell when this might be merged? |
Well, this comment is still an outstanding issue as far as I'm aware (it's even in the documentation), so it will take a little digging. Additionally, it would be helpful to get some background (and/or test cases?) on the first two commits. There doesn't seem to be an issue with pending tests or with detecting/handling the error when I use |
Without dae3428 running this test:"use strict";
it("should pass", function() {}); Using Chrome debugger will pause at an Without f76afbc running this test:"use strict";
it("done called twice", function(done) {
done();
done();
}); Using |
Thanks! I was able to confirm both of these experimenting with the code locally. Some interesting things I discovered in doing so:
So besides the original question of "why was By and large this looks good to me, so hopefully we can double-check those last couple things and get it merged in shortly. |
Tracked it down: the only place emitting an error event is here: Lines 270 to 290 in 4ed3fc5
done being called more than once.
So both of the fixes should be perfectly safe as far as I can tell. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having investigated the incidental fixes and found them both necessary and correct, and considering (admittedly without having dug up the history and rationale for sure) that allowUncaught
may simply have been left unimplemented in Node on the assumption that it couldn't be used, I think this should get merged unless anyone has any major concerns about determining for certain what the rationale was for only having allowUncaught in the browser.
That might not be a bad idea, but it's unlikely we'd get the same results, right? Then, we'd need to ensure the results we do get are the results we'd expect. Assuming If not, what's special about Node.js that these two changesets are necessary? @ScottFreeCode Apologies if this is what you were trying to say. 😉 |
@boneskull |
@lrowe Thanks!!! |
This has been published in v3.4.0! |
It's super handy to be able to drop into a debugger on test failure. See #1985.