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
Looking at the Error.stack getter data, it's almost certainly ok to require an [[ErrorData]] slot.
Looking at the Error.stack setter data, hardly anyone is using the setter, but most of those uses are on objects that don't have an [[ErrorData]] slot, and about 7 percent or so are calling the setter with a non-string argument.
Hopefully this data is useful in making decisions about the shape of the API. Unless I hear otherwise, I'm going to remove this telemetry in Firefox 142, I think it's served it's purpose.
For the setter, it's so seldom used, I'm not sure we need to worry about breaking people, looking at yesterday's data we saw around 2.7 billion uses of the getter on 55.3 billion documents, and only 14240 uses of the setter.
That seems insignificant from a web compatibility point of view, so I'd support requiring a string argument, for instance.
We discussed this in TG3 today and came to the conclusion that a setter that installs an own data property on the receiver should indeed be included in this proposal. It is likely that it will be the same intrinsic/function object that captureStackTrace installs as a setter, for the same reasons.
Activity
ljharb commentedon Jun 20, 2025
Awesome, thank you for this data! Perfectly fine to remove the telemetry.
Based on this data, I draw the following conclusions:
If these conclusions seem correct, then I'll prepare a PR with these changes to discuss in the next plenary.
dminor commentedon Jun 20, 2025
For the setter, it's so seldom used, I'm not sure we need to worry about breaking people, looking at yesterday's data we saw around 2.7 billion uses of the getter on 55.3 billion documents, and only 14240 uses of the setter.
That seems insignificant from a web compatibility point of view, so I'd support requiring a string argument, for instance.
ljharb commentedon Jun 20, 2025
OK, great! What do you think about #2, ie throwing or noop-ing with a slotless object?
dminor commentedon Jun 23, 2025
I think we should be consistent with the design choice for the getter, so I'd say throw in that case.
mhofman commentedon Jul 11, 2025
If the use of setter is so seldom, would it be considerable to not implement a setter at all?
dminor commentedon Jul 11, 2025
I think that's worth considering.
ljharb commentedon Jul 11, 2025
I suppose that would be a sloppy noop and a strict exception, if we shipped a getter and no setter - is that acceptable?
ljharb commentedon Nov 5, 2025
ping @dminor?
ljharb commentedon Nov 5, 2025
We discussed this in TG3 today and came to the conclusion that a setter that installs an own data property on the receiver should indeed be included in this proposal. It is likely that it will be the same intrinsic/function object that captureStackTrace installs as a setter, for the same reasons.