Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] console.log.bind(console) removed #4020

Closed
freeshineit opened this issue Dec 27, 2024 · 2 comments
Closed

[Bug] console.log.bind(console) removed #4020

freeshineit opened this issue Dec 27, 2024 · 2 comments

Comments

@freeshineit
Copy link

freeshineit commented Dec 27, 2024

@evanw
Copy link
Owner

evanw commented Dec 27, 2024

I assume you would like for esbuild to do the same thing that Terser now does after the identical issue you reported over there: terser/terser#1515. Is that correct? Specifically Terser turns this code into:

({log:function(){}.bind()}).log("logooo");

@freeshineit
Copy link
Author

I assume you would like for esbuild to do the same thing that Terser now does after the identical issue you reported over there: terser/terser#1515. Is that correct? Specifically Terser turns this code into:

({log:function(){}.bind()}).log("logooo");

Yes

Actually, it's good that JS can execute normally

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants