Remove getThis() and getFunction() from the CallSite API
- Category
- JavaScript
- Type
- New or changed feature
- Status
- In development (Chrome In development)
- Intent stage
- Removed
Summary
A callback installed on the non-standard Error.prepareStackTrace receives a list of CallSite objects. These objects have various accessors on them, 'getThis' and 'getFunction' among them. In-depth information: https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Motivation
The two accessors are not widely used and complicate the stack trace implementation.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/v8/issues/detail?id=9421
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=remove-getthis-and-getfunction-from-the-callsite-api
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Remove%20getThis()%20and%20getFunction()%20from%20the%20CallSite%20API
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Remove%20getThis()%20and%20getFunction()%20from%20the%20CallSite%20API
- Baseline status: https://webstatus.dev/?q=Remove%20getThis()%20and%20getFunction()%20from%20the%20CallSite%20API