mirror of https://github.com/tc39/test262.git
Top-level `let undefined` is a runtime error, not an early error. (#872)
The error occurs in [GlobalDeclarationInstantiation](https://tc39.github.io/ecma262/#sec-globaldeclarationinstantiation), which is runtime semantics.
This commit is contained in:
parent
abc4dfae42
commit
975e54de17
|
@ -11,7 +11,7 @@ info: |
|
||||||
c. Let hasRestrictedGlobal be ? envRec.HasRestrictedGlobalProperty(name).
|
c. Let hasRestrictedGlobal be ? envRec.HasRestrictedGlobalProperty(name).
|
||||||
d. If hasRestrictedGlobal is true, throw a SyntaxError exception.
|
d. If hasRestrictedGlobal is true, throw a SyntaxError exception.
|
||||||
negative:
|
negative:
|
||||||
phase: early
|
phase: runtime
|
||||||
type: SyntaxError
|
type: SyntaxError
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue