-
Notifications
You must be signed in to change notification settings - Fork 1
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
What about errors on the prototype chain? #3
Comments
Your analysis is correct. Is there code on the web that relies on this working? It's very uncommon in the language to have accessors that don't brand check. |
No idea. We don't have telemetry here to tell us. |
What is the appetite for shipping with the check with a pre-agreement to remove it if there's web compat issues? Meaning, we could easily have two specs - |
My appetite is fairly low; I wouldn't be opposed to trying to get some telemetry but not sure when I can slot that in. |
Note that the current spec text returns undefined, rather than throwing.
|
Indeed, closing makes sense, I believe. |
Well, it still behaves differently from Firefox and Chrome where (I have no opinion on what we should do, I'd go with the current behavior if it's web-compatible) |
I'd leave this open until we had any idea at all what is web compatible. |
Sounds good |
(It does appear that Chrome also works this way) |
Looking at the Firefox implementation, it appears that we explicitly handle the prototype chain in our getter implementation:
This means that
works; as I read the spec text on this proposal it would currently throw however because
o
lacks an[[ErrorData]]
internal slot.The text was updated successfully, but these errors were encountered: