-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Typeof This of Symbol().getTypeof Error #2865
Labels
Milestone
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In the poc.js, when running the transformed by swc by node, it's
but it should be
When rewriting typeof, it may contain a bug.
Input code
Config
Playground link
https://play.swc.rs/?version=1.2.112&code=H4sIAAAAAAAAA/NPykpNLtErKMovyS+pLEjVS08tCQHS+WkKtgpppXnJJZn5eQoamgrVXApAUJRaUlqUp1ACUVGSkVlszVXLxZWcn1ecn5Oql5OfrhFcmZuUn6OhiTBJQ1MTRQVUN0yhJgCxkh48hAAAAA==&config=H4sIAAAAAAAAA0WMTQrEIAxG75K1286id5hDBCctFv9IUhgR714tlu7C915ehUMsrBUyshCPS0pU/MMKZAOKZZcVTNf6tKEXagYUeScdiiyd+ZSEJjUQXHRbGSWbQmYSeRHG3T9m66GQfucYKmjJdAc/0N7G/HPynaLySe0Cj9ke9LUAAAA=
Expected behavior
When typeof this of Symbol(), it should be object instead of symbol.
Version
1.2.112
Additional context
I run swc use cmd as follows
The environment is ubuntu 20.04 amd64.
The text was updated successfully, but these errors were encountered: