You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Setter probably should still define without ErrorData slot. #2
This looks like pretty much exactly what I was hoping for.
One nit: I suspect the setter needs a different definition (which doesn't throw if there's no [[ErrorData]] internal slot), based on this comment in our source code.
Given that other browsers don't have a mutator at all, is there a reason we're stuck with that lax choice? It'd be much nicer to tighten this up if possible.
Fair. I can't figure out how to navigate the git history on that interface across a file move; is there any more context in the commit that added the comment?
wait, actually - the current spec in this proposal has 1. If _E_ does not have an [[ErrorData]] internal slot, return *undefined*. in both the getter and the setter, so i think this and #3 are both fine to close?
changed the title [-]The Setter probably shouldn't throw without an [[ErrorData]] slot. [/-][+]The Setter probably should still define without ErrorData slot. [/+]on Jan 9, 2025
Activity
ljharb commentedon Jan 9, 2025
Given that other browsers don't have a mutator at all, is there a reason we're stuck with that lax choice? It'd be much nicer to tighten this up if possible.
mgaudet commentedon Jan 9, 2025
The comment is a hint that there's use out there; but we don't have telemetry to help with this.
ljharb commentedon Jan 9, 2025
Fair. I can't figure out how to navigate the git history on that interface across a file move; is there any more context in the commit that added the comment?
mgaudet commentedon Jan 9, 2025
Looks like the setter was added here: https://bugzilla.mozilla.org/show_bug.cgi?id=1038238 / https://hg.mozilla.org/mozilla-central/rev/550a5c9e8800
ljharb commentedon Jan 9, 2025
What is "an Xray to an Error object"?
mgaudet commentedon Jan 9, 2025
Part of our script security model for content scripts:
ljharb commentedon Jan 9, 2025
ok, so it seems that https://bugzilla.mozilla.org/show_bug.cgi?id=1038238#c28 is the relevant comment - it's now been a decade since
class extends Errorwas an option, so per the hope in the comment, maybe people have moved on :-) obv that might be overly optimistic. Getting some telemetry on this would be really helpful.ljharb commentedon Jan 9, 2025
wait, actually - the current spec in this proposal has
1. If _E_ does not have an [[ErrorData]] internal slot, return *undefined*.in both the getter and the setter, so i think this and #3 are both fine to close?mgaudet commentedon Jan 9, 2025
...
You are right that it doesn't throw. I must have misread this morning.
It doesn't -define- though, which IMO would still be quite odd.
mgaudet commentedon Jan 9, 2025
(#3 is still at the very least a potential web compat issue)
[-]The Setter probably shouldn't throw without an [[ErrorData]] slot. [/-][+]The Setter probably should still define without ErrorData slot. [/+]ljharb commentedon Jan 9, 2025
ah - so you're suggesting that when there's no slot (and when it's not being invoked on itself), it should just define an own data property?