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
I would like to inquire if there's a possibility to exclude built-in objects from the mangling process.
Currently, when declaring a variable with the same name as a built-in object, such as Symbol, and then using that built-in object, both the user-defined variable and the usage of the built-in object get mangled.
Here's a snippet that reproduces the issue, which you can also replicate using the Terser REPL:
Bug report or Feature request?
Feature request
Version (complete output of
terser -V
or specific git commit)https://try.terser.org/
I would like to inquire if there's a possibility to exclude built-in objects from the mangling process.
Currently, when declaring a variable with the same name as a built-in object, such as
Symbol
, and then using that built-in object, both the user-defined variable and the usage of the built-in object get mangled.Here's a snippet that reproduces the issue, which you can also replicate using the Terser REPL:
terser
inputterser
output or errorHowever, the desired outcome is to keep the built-in object Symbol intact while only mangling the user-defined variable name:
Expected result
Is there an existing option or workaround to achieve this behavior? If not, could this be considered for a future enhancement?
The text was updated successfully, but these errors were encountered: