Skip to content

Fix: a test relied on faulty behavior #5028

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

Merged
merged 1 commit into from
Apr 10, 2018

Conversation

BridgeAR
Copy link
Contributor

@BridgeAR BridgeAR commented Apr 10, 2018

This came up in CITGM while improving assert.throws in Node.js. See nodejs/node#19867 for more information.

The current tests never checked for the error message and instead would just ignore that argument. It would only be used in case no error is thrown and that is not the intention in this case.

This makes sure the error message is actually tested for.

`assert.throws` did not test for the error message so far. This
changes it to actually test for the error message.
@GeoffreyBooth GeoffreyBooth merged commit be2b243 into jashkenas:master Apr 10, 2018
@GeoffreyBooth
Copy link
Collaborator

Thanks!

GeoffreyBooth added a commit to GeoffreyBooth/coffeescript that referenced this pull request Apr 30, 2018
GeoffreyBooth added a commit that referenced this pull request May 1, 2018
#5047)

* Explicitly turn off minify mangling, because it was previously implicitly disabled by the existence of the `eval` call we’re about to remove

* Update babel-core

* Run browser-compiled scripts using window.eval rather than just eval, to use a clean scope (many times faster)

* Update output

* Fix browser-based test broken by #5028

* Update output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants