test/script/basic/es6/lexical-toplevel-redeclare.js.EXPECTED

Mon, 24 Nov 2014 12:03:15 +0100

author
hannesw
date
Mon, 24 Nov 2014 12:03:15 +0100
changeset 1105
c3a510b73875
permissions
-rw-r--r--

8057691: Nashorn: let & const declarations are not shared between scripts
Reviewed-by: lagergren, attila

     1 lexical-toplevel-redeclare-var-on-let.js
     2 SyntaxError: Variable "LET" has already been declared
     3 VAR
     4 LET
     5 CONST
     6 function FUNC() {}
     7 GLOBAL
     8 VAR
     9 undefined
    10 undefined
    11 function FUNC() {}
    12 GLOBAL
    13 ReferenceError: "SHOULD_NOT_EXIST" is not defined
    14 undefined
    15 function Object() { [native code] }
    16 function Object() { [native code] }
    18 lexical-toplevel-redeclare-func-on-let.js
    19 SyntaxError: Variable "LET" has already been declared
    20 VAR
    21 LET
    22 CONST
    23 function FUNC() {}
    24 GLOBAL
    25 VAR
    26 undefined
    27 undefined
    28 function FUNC() {}
    29 GLOBAL
    30 ReferenceError: "SHOULD_NOT_EXIST" is not defined
    31 undefined
    32 function Object() { [native code] }
    33 function Object() { [native code] }
    35 lexical-toplevel-redeclare-let-on-var.js
    36 SyntaxError: Variable "VAR" has already been declared
    37 VAR
    38 LET
    39 CONST
    40 function FUNC() {}
    41 GLOBAL
    42 VAR
    43 undefined
    44 undefined
    45 function FUNC() {}
    46 GLOBAL
    47 ReferenceError: "SHOULD_NOT_EXIST" is not defined
    48 undefined
    49 function Object() { [native code] }
    50 function Object() { [native code] }
    52 lexical-toplevel-redeclare-let-on-func.js
    53 SyntaxError: Variable "FUNC" has already been declared
    54 VAR
    55 LET
    56 CONST
    57 function FUNC() {}
    58 GLOBAL
    59 VAR
    60 undefined
    61 undefined
    62 function FUNC() {}
    63 GLOBAL
    64 ReferenceError: "SHOULD_NOT_EXIST" is not defined
    65 undefined
    66 function Object() { [native code] }
    67 function Object() { [native code] }
    69 lexical-toplevel-redeclare-let-on-builtin.js
    70 VAR
    71 LET
    72 CONST
    73 function FUNC() {}
    74 GLOBAL
    75 VAR
    76 undefined
    77 undefined
    78 function FUNC() {}
    79 GLOBAL
    80 ReferenceError: "SHOULD_NOT_EXIST" is not defined
    81 undefined
    82 LEXICAL BUILTIN
    83 function Object() { [native code] }
    85 lexical-toplevel-redeclare-let-on-global.js
    86 VAR
    87 LET
    88 CONST
    89 function FUNC() {}
    90 LEXICAL GLOBAL
    91 VAR
    92 undefined
    93 undefined
    94 function FUNC() {}
    95 GLOBAL
    96 ReferenceError: "SHOULD_NOT_EXIST" is not defined
    97 undefined
    98 LEXICAL BUILTIN
    99 function Object() { [native code] }

mercurial