Skip to content
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

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

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

[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

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

No branches or pull requests

2 participants