mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
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).
|
||||
d. If hasRestrictedGlobal is true, throw a SyntaxError exception.
|
||||
negative:
|
||||
phase: early
|
||||
phase: runtime
|
||||
type: SyntaxError
|
||||
---*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user