You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{_as_type_of}from"@swc/helpers/_/_type_of";exportfunctionf(){return['object'==typeofa,/* if a is a polyfilled symbol the result is wrong */("undefined"==typeofb ? "undefined" : _type_of(b))==='symbol',"undefined"==typeofc ? "undefined" : _type_of(c)];}
Version
1.5.8
Additional context
No response
The text was updated successfully, but these errors were encountered:
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
"typeof" is not transformed to working with Symbol polyfill
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.5.8&code=H4sIAAAAAAAAA02MTQrDIBCF9znF29mGQE7gSUoX1Y6pxTqiI42U3j2GbLJ5vD8%2BWhNngavRiucIh8sVvwHIJDVH3LoFpCVihwe01lBs3mRFTZhH%2BL31pUvi0JwPgZ4o7WM4QF7UMaUG2R%2FfzHHBOJ%2BB5gAefzWdJ9vDffhvgvmsEaAAAAA%3D&config=H4sIAAAAAAAAA32UzZLbIAzH732KjM%2B9toc%2BQKeXfQaGgHDIYuRBIhvPTt69MnY%2BdiPnZuunvwSS0OeP3a47kuv%2B7D7lU35GWwjK7V8sNGW2Z7F04AZLrsSRu59XeqQZBZsImumykI5t6YGbin6t7l1CJLi6r7Yh5himx4QOh7EA0YNNrBKvDpCZvupXVvBjBlzqo32PmMDmF8RYMjEz9FC0wA5TsiOBOdmiRJlPaksk1FLMsDJ4MxYcVZ595IhZcj5TD9Ybhx4UFAs4jifQZJJLZJnkesp9Gvawr33fmvxNDSebqmUlJ5xbS%2BS0StQDRmITatZKuMCNGixwLe53ZQymANeSn3VHjHmjJ%2B8AUoFkibIdQIvbPILM05Y6vFTGHGRkeVK4zLd2ywy9FNXEGJTKzpWBwlHrZgFfHcyVddpxVrxRPooeDIQgs6KEpo%2FI7qAl5WkEDAqQ%2FtqgTdUCzO0VbvD5QbzAf%2BWWrA%2FY6jFYPmxTmoY9ak%2FpqgY%2BoH9xAOkE4zYusiTO4zav2YNMBnjVpVIDzztA5p%2FRpLYrn0ZDXodENH3C%2FX1LrA6X2w4ebO7vz%2F3LGoYzQ5EN8w%2FSCOUhQnPoBvS1KdftP%2Fd%2B2dm%2Fu7vTdUPfbtVFersqW7zLf5CLpVVJBgAA
SWC Info output
`
Operating System:
Platform: win32
Arch: x64
Machine Type: x86_64
Version: Windows 11 Pro for Workstations
CPU: (12 cores)
Models: AMD Ryzen 5 5600U with Radeon Graphics
Expected behavior
The result from babel.js:
Actual behavior
Version
1.5.8
Additional context
No response
The text was updated successfully, but these errors were encountered: