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

fix: run asserts first if possible #3541

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Sep 3, 2024

this PR tries to run various asserts before instantiating variables. also use assert instead of assert.strictEqual because passing boolean values is cheaper than passing primitive and non-primitive values to the assert.strictEqual function.

ronag

This comment was marked as outdated.

@Uzlopak Uzlopak merged commit 3faf140 into nodejs:main Sep 3, 2024
32 checks passed
@Uzlopak Uzlopak deleted the assert-first branch September 3, 2024 16:23
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.

2 participants