Mercurial > people > rkennke > jdk9-shenandoah-final > nashorn
view 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 |
line wrap: on
line source
anon func 225 function (x) { print('anon func'); return x*x; } syntax error? true SyntaxError: <function>:1:13 Missing close quote print('hello) ^ done