Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "SyntaxError: arguments is not valid in fields" occurs when the arguments identifier is read in a class field initializer or in a static initialization block, outside of a non-arrow function.

Reference entryJavaScriptFetched
SyntaxError: 'arguments' is not allowed in class field initializer or static initialization block (V8-based)
As listed by MDN Web Docs
SyntaxError: arguments is not valid in fields (Firefox)
As listed by MDN Web Docs
SyntaxError: Unexpected identifier 'arguments'. Cannot reference 'arguments' in class field initializer. (Safari)
As listed by MDN Web Docs
Category
SyntaxError
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.