Skip to content
JS
JavaScript error

TypeError

The JavaScript strict mode-only exception "is read-only" occurs when a global variable or object property that was assigned to is a read-only property.

Reference entryJavaScriptFetched
TypeError: Cannot assign to read only property 'x' of #<Object> (V8-based)
As listed by MDN Web Docs
TypeError: "x" is read-only (Firefox)
As listed by MDN Web Docs
TypeError: Attempted to assign to readonly property. (Safari)
As listed by MDN Web Docs
Category
TypeError in strict mode only
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.274Z.