-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Conversation
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; |
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.
Should we update assert.fail
the same way it's done there #7915?
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.
probably
/cc @gabelevi probably |
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.
@nmote has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
I had to add the inexact type syntax and record the tests after rebasing, but otherwise the rebased version was unchanged |
Closes #7217
Revived #7401
https://nodejs.org/api/assert.html#assert_strict_mode