Intent to Ship: Error.captureStackTrace

138 views
Skip to first unread message

Matthew Gaudet

unread,
Feb 26, 2025, 3:31:59 PMFeb 26
to dev-pl...@mozilla.org
Hello all,

I previously sent an Intent To Prototype for Error.captureStackTrace [1]. I now intend to ship this in https://bugzilla.mozilla.org/show_bug.cgi?id=1950508

Error.captureStackTrace stamps a "stack" property onto an object, potentially trimming the stack to hide internal API methods, allowing a modicum of stack customization. See MDN for the wonderful docs [2].

We are shipping to address web-compat problems caused by being the only browser to not have an implementation of this API.

In parallel to shipping I am pursuing standardization at TC39. The proposal [3] is now at Stage 1 of the TC39 process. 

-- Matthew Gaudet

Reply all
Reply to author
Forward
0 new messages