author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 17973 | nashorn/test/script/basic/funcconstructor.js.EXPECTED@d220c8157f25 |
permissions | -rw-r--r-- |
16147 | 1 |
anon func |
2 |
225 |
|
3 |
function (x) { |
|
4 |
print('anon func'); return x*x; |
|
5 |
} |
|
6 |
syntax error? true |
|
17973
d220c8157f25
8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
16147
diff
changeset
|
7 |
SyntaxError: <function>:1:13 Missing close quote |
16147 | 8 |
print('hello) |
9 |
^ |
|
10 |
done |