--- old/test/nashorn/script/basic/es6/lexical-toplevel-redeclare.js.EXPECTED 2020-04-15 19:14:12.000000000 +0530 +++ /dev/null 2020-04-15 19:14:13.000000000 +0530 @@ -1,100 +0,0 @@ -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] } -