← Back to release summary

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

Ecosystem

View on chromestatus.com