comparison test/script/basic/JDK-8015345.js.EXPECTED @ 315:295c91f5fdde

8015345: Function("}),print('test'),({") should throw SyntaxError Reviewed-by: lagergren, hannesw, jlaskey
author sundar
date Mon, 03 Jun 2013 15:58:14 +0530
parents
children
comparison
equal deleted inserted replaced
314:64250b3a2f2a 315:295c91f5fdde
1 SyntaxError: <function>:1:0 Expected eof but found }
2 }),print('test'),({
3 ^
4 SyntaxError: <function>:1:2 Expected an operand but found *
5 x**y
6 ^
7 SyntaxError: <function>:1:0 Expected an operand but found in
8 in
9 ^
10 SyntaxError: <function>:1:3 Expected ; but found y
11 x--y
12 ^
13 100
14 55
15 12