-
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
esbuild@0.20.1 prototype setting when bundling json containing a __proto__
key
#3700
Comments
__proto__
key__proto__
key
Was broken by ac36537. Discovered through tests in https://github.com/lucacasonato/esbuild_deno_loader |
Hmm, I think this perhaps never really worked. Version 0.20.0 can generate incorrect output as well. Thanks for the report! I'll fix this in the next release. |
Thanks @evanw for the quick fix! |
Sorry, I want to ask a question here. Is there some relevant spec indicated that we need compute property key in some case such as |
I believe the relevant part of the JavaScript specification is here:
|
Got it. Thank u. |
In the 0.20.1 output, the
__proto__
field of the JSON is incorrectly written as__proto__: __proto__
. This sets the prototype ofstdin_default
rather than a__proto__
key, like was happening in 0.20.0 and below.This may be a security issue if users bundle untrusted JSON files into their code (but probably not that bad).
The text was updated successfully, but these errors were encountered: