Skip to content
JS
JavaScript error

SyntaxError

The JavaScript exception "use of super property/member accesses only valid within methods or eval code within methods" occurs when the super.x or super[x] syntax is used outside of a method.

Reference entryJavaScriptFetched
SyntaxError: 'super' keyword unexpected here (V8-based)
As listed by MDN Web Docs
SyntaxError: use of super property accesses only valid within methods or eval code within methods (Firefox)
As listed by MDN Web Docs
SyntaxError: super is not valid in this context. (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.