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

Print this page


   1 VAR
   2 LET
   3 CONST
   4 function FUNC() {}
   5 GLOBAL
   6 VAR
   7 undefined
   8 undefined
   9 function FUNC() {}
  10 GLOBAL
  11 true
  12 false
  13 false
  14 true
  15 true

  16 VAR
  17 LETLET
  18 CONST
  19 function FUNC() {}
  20 GLOBAL
  21 VAR
  22 undefined
  23 undefined
  24 function FUNC() {}
  25 GLOBAL
  26 true
  27 false
  28 false
  29 true
  30 true

   1 VAR
   2 LET
   3 CONST
   4 function FUNC() {}
   5 GLOBAL
   6 VAR
   7 undefined
   8 undefined
   9 function FUNC() {}
  10 GLOBAL
  11 true
  12 false
  13 false
  14 true
  15 true
  16 TypeError: Assignment to constant "CONST"
  17 VAR
  18 LETLET
  19 CONST
  20 function FUNC() {}
  21 GLOBAL
  22 VAR
  23 undefined
  24 undefined
  25 function FUNC() {}
  26 GLOBAL
  27 true
  28 false
  29 false
  30 true
  31 true
  32 TypeError: Assignment to constant "CONST"