Mercurial > people > rkennke > jdk9-shenandoah-final > nashorn
comparison test/script/basic/funcconstructor.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 | da1e581c933b |
children |
comparison
equal
deleted
inserted
replaced
314:64250b3a2f2a | 315:295c91f5fdde |
---|---|
2 225 | 2 225 |
3 function (x) { | 3 function (x) { |
4 print('anon func'); return x*x; | 4 print('anon func'); return x*x; |
5 } | 5 } |
6 syntax error? true | 6 syntax error? true |
7 SyntaxError: <function>:2:13 Missing close quote | 7 SyntaxError: <function>:1:13 Missing close quote |
8 print('hello) | 8 print('hello) |
9 ^ | 9 ^ |
10 done | 10 done |