Skip to content
JS
JavaScript error

SyntaxError

The JavaScript strict mode-only exception "'arguments' can't be defined or assigned to in strict mode code" or "'eval' can't be defined or assigned to in strict mode code" occurs when attempting to create a called arguments or eval, or assign to such a name.

Reference entryJavaScriptFetched
SyntaxError: Unexpected eval or arguments in strict mode (V8-based)
As listed by MDN Web Docs
SyntaxError: 'arguments' can't be defined or assigned to in strict mode code (Firefox)
As listed by MDN Web Docs
SyntaxError: Cannot modify 'arguments' in strict mode. (Safari)
As listed by MDN Web Docs
SyntaxError: Cannot destructure to a parameter name 'arguments' in strict mode. (Safari)
As listed by MDN Web Docs
SyntaxError: Cannot declare a variable named arguments in strict mode. (Safari)
As listed by MDN Web Docs
SyntaxError: Cannot declare a catch variable named 'arguments' in strict mode. (Safari)
As listed by MDN Web Docs
SyntaxError: 'arguments' is not a valid function name in strict mode. (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.