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

1 ** NaN should be NaN #9250

Closed
magic-akari opened this issue Jul 15, 2024 · 1 comment · Fixed by #9251
Closed

1 ** NaN should be NaN #9250

magic-akari opened this issue Jul 15, 2024 · 1 comment · Fixed by #9251
Labels
Milestone

Comments

@magic-akari
Copy link
Member

Describe the bug

related issue:

Input code

console.log(1 ** NaN);

Config

{
    "jsc": {
        "parser": {
          "syntax": "ecmascript",
        },
        "target": "es2022",
        "minify": {
          "compress": {
            "evaluate": true
          }
        }
    }
}

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.6.7&code=H4sIAAAAAAAAA0vOzyvOz0nVy8lP1zBU0NJS8Ev007QGALXfBsUWAAAA&config=H4sIAAAAAAAAA12MQQqEMAxF9z2FZO1i6NLbhBKlYjsliYMivbuhC0fN6v%2F3HzlcZwezBBi6o5UGCrIQP5hR2bPiZhQoJJTAsSj0l1H%2FERR5Im2q%2BI%2F3Nw1SzHHc38%2FDNxUmkRe3hX64rKhki%2FJKt7G6Z6qungTo2cDSAAAA

SWC Info output

No response

Expected behavior

console.log(NaN);

Actual behavior

console.log(1);

Version

1.6.7

Additional context

No response

@kdy1 kdy1 added this to the Planned milestone Jul 15, 2024
@kdy1 kdy1 closed this as completed in 06bb533 Jul 16, 2024
levi-nz pushed a commit to levi-nz/swc that referenced this issue Jul 16, 2024
@kdy1 kdy1 modified the milestones: Planned, v1.7.0 Jul 17, 2024
@swc-bot
Copy link
Collaborator

swc-bot commented Aug 17, 2024

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.

@swc-project swc-project locked as resolved and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

3 participants