-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Variable named as NaN
cannot be resolved
#7685
Comments
swc/crates/swc_ecma_transforms_base/src/resolver/mod.rs Lines 272 to 275 in 549e138
I don't think this is true. |
Ah... {
let NaN = 1;
console.log(NaN);
} prints 1 and
prints |
|
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
Variable
NaN
is incorrectly renamed.Input code
Config
Playground link
playground
Expected behavior
The output should be exactly the same as the input.
Actual behavior
Version
1.3.70
Additional context
with
andNaN
#4596Infinity
/undefined
/NaN
#7684No response
The text was updated successfully, but these errors were encountered: