-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Open
Labels
Content:JSJavaScript docsJavaScript docs
Description
MDN URL
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
The information only mentions is regarding Object.preventExtensions, but there are other methods that may force this error.
What did you expect to see?
I was expecting to see 3 other ways this can show up:
- When an object was sealed via Object.seal()
- When an object was frozen via Object.freeze()
- When using ESM modules and
export default {}the exported object is not extensible
Do you have any supporting links, references, or citations?
-
Not sure if I am reading the spec but maybe this - https://tc39.es/ecma262/multipage/ordinary-and-exotic-objects-behaviours.html#sec-module-namespace-exotic-objects
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/javascript/reference/errors/cant_define_property_object_not_extensible - MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_define_property_object_not_extensible
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/reference/errors/cant_define_property_object_not_extensible/index.md
- Last commit: fad67be
- Document last modified: 2025-07-08T13:18:45.000Z
Metadata
Metadata
Assignees
Labels
Content:JSJavaScript docsJavaScript docs