Mon, 08 Sep 2014 15:37:50 +0400
8057678: Tests for let and const keywords in Nashorn
Reviewed-by: hannesw, lagergren
Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
yan@995 | 1 | ReferenceError: "a" is not defined |
yan@995 | 2 | SyntaxError: test/script/basic/es6/let_const_reuse.js#35:9<eval>@4:3:8 Assignment to constant "a" |
yan@995 | 3 | a-- |
yan@995 | 4 | ^ |
yan@995 | 5 | SyntaxError: test/script/basic/es6/let_const_reuse.js#35:9<eval>@4:3:8 Assignment to constant "a" |
yan@995 | 6 | a-- |
yan@995 | 7 | ^ |
yan@995 | 8 | ReferenceError: "a" is not defined |