-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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: __proto__
behaves differently from Chrome, Node, and Firefox
#16833
Comments
Before anyone asks: no, this is not related to having a newer version of V8. Here is the same bug with a much older version: $ deno
Deno 1.12.0
exit using ctrl+d or close()
> let p = '__proto__'
undefined
> let o = {}
undefined
> o
{}
> o[p] = 3
3
> o
{ __proto__: 3 }
> $ deno --version
deno 1.12.0 (release, x86_64-unknown-linux-gnu)
v8 9.2.230.14
typescript 4.3.2 Edit: the same is true for 55da1a2. |
It's not a bug, Deno explicitly doesn't have support Related #16775 |
Fascinating. The background of this issue is that This issue will be fixed by #16775. I have opened denoland/dnt#235 on the dnt repo. |
Note that #16775 won't completely fix this: The setter will simply warn and fail. |
See #4324 for more details. |
For some reason, Deno 1.28.2 behaves differently regarding the
__proto__
property.Deno
Node
Google Chrome 107.0.5304.110
Firefox 102.5.0esr
The text was updated successfully, but these errors were encountered: