Tue, 09 Jun 2015 14:19:57 +0530
8086032: Add compiler error tests when syntax extensions are used with --no-syntax-extensions option
Reviewed-by: attila, hannesw
aoqi@0 | 1 | test/script/error/NASHORN-154/improper_return_break_continue.js:34:0 Invalid return statement |
aoqi@0 | 2 | return 33; |
aoqi@0 | 3 | ^ |
aoqi@0 | 4 | test/script/error/NASHORN-154/improper_return_break_continue.js:36:0 Illegal continue statement |
aoqi@0 | 5 | continue; |
aoqi@0 | 6 | ^ |
aoqi@0 | 7 | test/script/error/NASHORN-154/improper_return_break_continue.js:37:0 Illegal break statement |
aoqi@0 | 8 | break; |
aoqi@0 | 9 | ^ |
aoqi@0 | 10 | test/script/error/NASHORN-154/improper_return_break_continue.js:39:9 Undefined Label "nonExist" |
aoqi@0 | 11 | continue nonExist; |
aoqi@0 | 12 | ^ |
aoqi@0 | 13 | test/script/error/NASHORN-154/improper_return_break_continue.js:40:6 Undefined Label "nonExist" |
aoqi@0 | 14 | break nonExist; |
aoqi@0 | 15 | ^ |