← Back to release summary

Disallow Adding New Private Fields to Non-extensible Objects

Category
JavaScript
Type
Chromium catches up
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Prevent stamping private fields to non-extensible object. This proposal proposes to change the behavior of non-extensibility to also apply to private fields. That is, to make it so that private fields cannot be added to non-extensible objects.

Standards & signals

Ecosystem

Explainers: https://github.com/tc39/proposal-nonextensible-applies-to-private

View on chromestatus.com