nashorn/test/script/basic/funcconstructor.js.EXPECTED
author hannesw
Wed, 10 Apr 2013 14:05:11 +0200
changeset 16939 9e3a9eda5775
parent 16147 e63b63819133
child 17973 d220c8157f25
permissions -rw-r--r--
8011749: Bugs with empty character class handling Reviewed-by: lagergren, attila
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     1
anon func
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     2
225
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     3
function (x) {
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     4
print('anon func'); return x*x;
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     5
}
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     6
syntax error? true
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     7
SyntaxError: <function>:2:13 Missing close quote
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     8
print('hello)
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     9
             ^
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    10
done