Skip to content
JS
JavaScript error

TypeError

The JavaScript exception "can't define property "x": "obj" is not extensible" occurs when an object is marked as non-extensible, so that it will never have properties beyond the ones it had at the time it was marked as non-extensible. Objects can be made non-extensible by calling Object.preventExtensions(), Object.seal(), or Object.freeze().

Reference entryJavaScriptFetched
TypeError: Cannot add property x, object is not extensible (V8-based)
As listed by MDN Web Docs
TypeError: Cannot define property x, object is not extensible (V8-based)
As listed by MDN Web Docs
TypeError: can't define property "x": Object is not extensible (Firefox)
As listed by MDN Web Docs
TypeError: Attempting to define property on object that is not extensible. (Safari)
As listed by MDN Web Docs
Category
TypeError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.273Z.