-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Describe the bug
incorrect inline of Number
when shadowed. It's probably incorrect for other globals, but I haven't checked.
Input code
let Number; console.log(Number.NaN);
Config
Link to the code that reproduces this issue
SWC Info output
No response
Expected behavior
console.log(undefined.NaN);
or
console.log((void 0).NaN);
Actual behavior
console.log(NaN);
Version
1.32.2
Additional context
No response