test/script/basic/funcconstructor.js.EXPECTED

Mon, 03 Jun 2013 15:58:14 +0530

author
sundar
date
Mon, 03 Jun 2013 15:58:14 +0530
changeset 316
295c91f5fdde
parent 3
da1e581c933b
child 952
6d5471a497fb
permissions
-rw-r--r--

8015345: Function("}),print('test'),({") should throw SyntaxError
Reviewed-by: lagergren, hannesw, jlaskey

     1 anon func
     2 225
     3 function (x) {
     4 print('anon func'); return x*x;
     5 }
     6 syntax error? true
     7 SyntaxError: <function>:1:13 Missing close quote
     8 print('hello)
     9              ^
    10 done

mercurial