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

changeset 1105
c3a510b73875
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/script/basic/es6/lexical-toplevel-redeclare.js.EXPECTED	Mon Nov 24 12:03:15 2014 +0100
     1.3 @@ -0,0 +1,100 @@
     1.4 +lexical-toplevel-redeclare-var-on-let.js
     1.5 +SyntaxError: Variable "LET" has already been declared
     1.6 +VAR
     1.7 +LET
     1.8 +CONST
     1.9 +function FUNC() {}
    1.10 +GLOBAL
    1.11 +VAR
    1.12 +undefined
    1.13 +undefined
    1.14 +function FUNC() {}
    1.15 +GLOBAL
    1.16 +ReferenceError: "SHOULD_NOT_EXIST" is not defined
    1.17 +undefined
    1.18 +function Object() { [native code] }
    1.19 +function Object() { [native code] }
    1.20 +
    1.21 +lexical-toplevel-redeclare-func-on-let.js
    1.22 +SyntaxError: Variable "LET" has already been declared
    1.23 +VAR
    1.24 +LET
    1.25 +CONST
    1.26 +function FUNC() {}
    1.27 +GLOBAL
    1.28 +VAR
    1.29 +undefined
    1.30 +undefined
    1.31 +function FUNC() {}
    1.32 +GLOBAL
    1.33 +ReferenceError: "SHOULD_NOT_EXIST" is not defined
    1.34 +undefined
    1.35 +function Object() { [native code] }
    1.36 +function Object() { [native code] }
    1.37 +
    1.38 +lexical-toplevel-redeclare-let-on-var.js
    1.39 +SyntaxError: Variable "VAR" has already been declared
    1.40 +VAR
    1.41 +LET
    1.42 +CONST
    1.43 +function FUNC() {}
    1.44 +GLOBAL
    1.45 +VAR
    1.46 +undefined
    1.47 +undefined
    1.48 +function FUNC() {}
    1.49 +GLOBAL
    1.50 +ReferenceError: "SHOULD_NOT_EXIST" is not defined
    1.51 +undefined
    1.52 +function Object() { [native code] }
    1.53 +function Object() { [native code] }
    1.54 +
    1.55 +lexical-toplevel-redeclare-let-on-func.js
    1.56 +SyntaxError: Variable "FUNC" has already been declared
    1.57 +VAR
    1.58 +LET
    1.59 +CONST
    1.60 +function FUNC() {}
    1.61 +GLOBAL
    1.62 +VAR
    1.63 +undefined
    1.64 +undefined
    1.65 +function FUNC() {}
    1.66 +GLOBAL
    1.67 +ReferenceError: "SHOULD_NOT_EXIST" is not defined
    1.68 +undefined
    1.69 +function Object() { [native code] }
    1.70 +function Object() { [native code] }
    1.71 +
    1.72 +lexical-toplevel-redeclare-let-on-builtin.js
    1.73 +VAR
    1.74 +LET
    1.75 +CONST
    1.76 +function FUNC() {}
    1.77 +GLOBAL
    1.78 +VAR
    1.79 +undefined
    1.80 +undefined
    1.81 +function FUNC() {}
    1.82 +GLOBAL
    1.83 +ReferenceError: "SHOULD_NOT_EXIST" is not defined
    1.84 +undefined
    1.85 +LEXICAL BUILTIN
    1.86 +function Object() { [native code] }
    1.87 +
    1.88 +lexical-toplevel-redeclare-let-on-global.js
    1.89 +VAR
    1.90 +LET
    1.91 +CONST
    1.92 +function FUNC() {}
    1.93 +LEXICAL GLOBAL
    1.94 +VAR
    1.95 +undefined
    1.96 +undefined
    1.97 +function FUNC() {}
    1.98 +GLOBAL
    1.99 +ReferenceError: "SHOULD_NOT_EXIST" is not defined
   1.100 +undefined
   1.101 +LEXICAL BUILTIN
   1.102 +function Object() { [native code] }
   1.103 +

mercurial