annotate test/script/basic/JDK-8015345.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
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
315
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
1 SyntaxError: <function>:1:0 Expected eof but found }
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
2 }),print('test'),({
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
3 ^
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
4 SyntaxError: <function>:1:2 Expected an operand but found *
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
5 x**y
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
6 ^
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
7 SyntaxError: <function>:1:0 Expected an operand but found in
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
8 in
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
9 ^
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
10 SyntaxError: <function>:1:3 Expected ; but found y
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
11 x--y
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
12 ^
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
13 100
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
14 55
295c91f5fdde 8015345: Function("}),print('test'),({") should throw SyntaxError
sundar
parents:
diff changeset
15 12