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 strict mode assert typedefs #7660

Closed
wants to merge 2 commits into from

Conversation

goodmind
Copy link
Contributor

@goodmind goodmind commented Apr 22, 2019

@goodmind goodmind requested a review from nmote April 22, 2019 04:30
@goodmind goodmind added the Library definitions Issues or pull requests about core library definitions label Apr 22, 2019
ok(value: any, message?: string): void;
fail(message?: string | Error): void;
// deprecated since v10.15
fail(actual: any, expected: any, message: string, operator: string): void;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we update assert.fail the same way it's done there #7915?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably

@goodmind goodmind added the node label Jul 16, 2019
@goodmind goodmind added the Stalled Issues and PRs that are stalled. label Jul 27, 2019
@goodmind
Copy link
Contributor Author

/cc @gabelevi probably

@goodmind goodmind removed the Stalled Issues and PRs that are stalled. label Sep 24, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@nmote has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@nmote
Copy link
Contributor

nmote commented Mar 8, 2021

I had to add the inexact type syntax and record the tests after rebasing, but otherwise the rebased version was unchanged

@facebook-github-bot
Copy link
Contributor

@nmote merged this pull request in 1ad5088.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Library definitions Issues or pull requests about core library definitions Merged node
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Node assert strict mode: require('assert').strict
5 participants