b5ae347f9c
Reviewed-by: lagergren, attila
101 lines
1.7 KiB
Plaintext
101 lines
1.7 KiB
Plaintext
lexical-toplevel-redeclare-var-on-let.js
|
|
SyntaxError: Variable "LET" has already been declared
|
|
VAR
|
|
LET
|
|
CONST
|
|
function FUNC() {}
|
|
GLOBAL
|
|
VAR
|
|
undefined
|
|
undefined
|
|
function FUNC() {}
|
|
GLOBAL
|
|
ReferenceError: "SHOULD_NOT_EXIST" is not defined
|
|
undefined
|
|
function Object() { [native code] }
|
|
function Object() { [native code] }
|
|
|
|
lexical-toplevel-redeclare-func-on-let.js
|
|
SyntaxError: Variable "LET" has already been declared
|
|
VAR
|
|
LET
|
|
CONST
|
|
function FUNC() {}
|
|
GLOBAL
|
|
VAR
|
|
undefined
|
|
undefined
|
|
function FUNC() {}
|
|
GLOBAL
|
|
ReferenceError: "SHOULD_NOT_EXIST" is not defined
|
|
undefined
|
|
function Object() { [native code] }
|
|
function Object() { [native code] }
|
|
|
|
lexical-toplevel-redeclare-let-on-var.js
|
|
SyntaxError: Variable "VAR" has already been declared
|
|
VAR
|
|
LET
|
|
CONST
|
|
function FUNC() {}
|
|
GLOBAL
|
|
VAR
|
|
undefined
|
|
undefined
|
|
function FUNC() {}
|
|
GLOBAL
|
|
ReferenceError: "SHOULD_NOT_EXIST" is not defined
|
|
undefined
|
|
function Object() { [native code] }
|
|
function Object() { [native code] }
|
|
|
|
lexical-toplevel-redeclare-let-on-func.js
|
|
SyntaxError: Variable "FUNC" has already been declared
|
|
VAR
|
|
LET
|
|
CONST
|
|
function FUNC() {}
|
|
GLOBAL
|
|
VAR
|
|
undefined
|
|
undefined
|
|
function FUNC() {}
|
|
GLOBAL
|
|
ReferenceError: "SHOULD_NOT_EXIST" is not defined
|
|
undefined
|
|
function Object() { [native code] }
|
|
function Object() { [native code] }
|
|
|
|
lexical-toplevel-redeclare-let-on-builtin.js
|
|
VAR
|
|
LET
|
|
CONST
|
|
function FUNC() {}
|
|
GLOBAL
|
|
VAR
|
|
undefined
|
|
undefined
|
|
function FUNC() {}
|
|
GLOBAL
|
|
ReferenceError: "SHOULD_NOT_EXIST" is not defined
|
|
undefined
|
|
LEXICAL BUILTIN
|
|
function Object() { [native code] }
|
|
|
|
lexical-toplevel-redeclare-let-on-global.js
|
|
VAR
|
|
LET
|
|
CONST
|
|
function FUNC() {}
|
|
LEXICAL GLOBAL
|
|
VAR
|
|
undefined
|
|
undefined
|
|
function FUNC() {}
|
|
GLOBAL
|
|
ReferenceError: "SHOULD_NOT_EXIST" is not defined
|
|
undefined
|
|
LEXICAL BUILTIN
|
|
function Object() { [native code] }
|
|
|