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

[Refactor] use more explicit assert.ok #451

Closed
wants to merge 1 commit into from
Closed

Conversation

ljharb
Copy link
Contributor

@ljharb ljharb commented Jan 5, 2022

This is a tiny refactor, hopefully it's acceptable.

(We'll all be much happier if you choose not to ask why i need this change :-) )

@nicolas377
Copy link

@isaacs does this need documentation since it's such a small change?

@ljharb
Copy link
Contributor Author

ljharb commented May 13, 2022

I'd assume not; virtually nobody but me's going to notice.

@nicolas377
Copy link

We'll all be much happier if you choose not to ask why i need this change

@ljharb I'm actually a bit curious why you were running into an issue with this. assert() seems to be an alias of assert.ok(), so what's the issue on the api's end? If changing from assert() from assert.ok() does fix an issue or change functionality even in a very small way, we'll have to document this.

@ljharb
Copy link
Contributor Author

ljharb commented May 13, 2022

@nicolas377 see the second sentence in the OP.

In node 0.6+, this will behave identically. Absolutely nothing needs to be documented that affects an older version of node than that :-)

Copy link

@nicolas377 nicolas377 left a comment

Choose a reason for hiding this comment

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

@isaacs LGTM! All the functionality this changes is out of scope of this package's supported node versions.

@isaacs
Copy link
Owner

isaacs commented May 13, 2022

(We'll all be much happier if you choose not to ask why i need this change :-) )

Oh god, I think I know what's going on here lol 😂

Do you need this backported to v7? v8 is node 12+ already anyway.

@isaacs isaacs closed this in fc717ba May 13, 2022
@ljharb ljharb deleted the patch-1 branch May 13, 2022 16:20
@ljharb
Copy link
Contributor Author

ljharb commented May 13, 2022

@isaacs ideally yes, but i understand if you're unwilling. either way this drastically reduces the number of n_m patches i need to float :-)

isaacs pushed a commit that referenced this pull request May 13, 2022
@isaacs
Copy link
Owner

isaacs commented May 13, 2022

Published on 7.2.2 and 8.0.3

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.

3 participants