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:
Kevin Gibbons 2017-03-02 12:37:22 -08:00 committed by Leo Balter
parent abc4dfae42
commit 975e54de17
1 changed files with 1 additions and 1 deletions

View File

@ -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
---*/ ---*/