Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Conversation

@kaioduarte
Copy link
Contributor

@kaioduarte kaioduarte commented Dec 15, 2022

Summary

Closes #3987.

Test Plan

cargo test -p rome_js_analyze -- use_is_nan

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@kaioduarte kaioduarte requested review from a team, ematipico, leops and xunilrj as code owners December 15, 2022 19:06
@netlify
Copy link

netlify bot commented Dec 15, 2022

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 3378822
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/63a1df58d8884f000a94ae45

impl Message {
fn as_str(&self) -> &str {
match self {
Self::BinaryExpression => "Use the isNaN function to compare with NaN.",
Copy link
Contributor

Choose a reason for hiding this comment

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

to compare against NaN.

Note: I am not a native speaker. So any native feel free to jump in and confirm this.

Copy link
Contributor Author

@kaioduarte kaioduarte Dec 16, 2022

Choose a reason for hiding this comment

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

I took that one from ESLint. I just checked it on Grammarly, and it didn't complain :P

@ematipico ematipico merged commit 5f11441 into rome:main Dec 20, 2022
@kaioduarte kaioduarte deleted the feat/use-isnan branch December 20, 2022 16:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

noNotANumberPrimitive, use-isnan

4 participants