nashorn/test/script/basic/JDK-8019508.js.EXPECTED
author sundar
Wed, 06 May 2015 20:04:42 +0530
changeset 30394 72a59e4dffea
parent 20929 f2bd18181940
permissions -rw-r--r--
8079470: Misleading error message when explicit signature constructor is called with wrong arguments Reviewed-by: jlaskey, hannesw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20929
f2bd18181940 8026167: Class cache/reuse of 'eval' scripts results in ClassCastException in some cases.
sundar
parents: 18629
diff changeset
     1
SyntaxError:33:Expected property id but found ,
18629
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
     2
({,})
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
     3
  ^
20929
f2bd18181940 8026167: Class cache/reuse of 'eval' scripts results in ClassCastException in some cases.
sundar
parents: 18629
diff changeset
     4
SyntaxError:33:Expected property id but found ,
18629
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
     5
({, a:2 })
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
     6
  ^
20929
f2bd18181940 8026167: Class cache/reuse of 'eval' scripts results in ClassCastException in some cases.
sundar
parents: 18629
diff changeset
     7
SyntaxError:33:Expected property id but found ,
18629
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
     8
({a:3,,})
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
     9
      ^
20929
f2bd18181940 8026167: Class cache/reuse of 'eval' scripts results in ClassCastException in some cases.
sundar
parents: 18629
diff changeset
    10
SyntaxError:33:Expected comma but found ident
18629
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
    11
({a:3 b:2}
6b0b6aab4280 8019508: Comma handling in object literal parsing is wrong
sundar
parents:
diff changeset
    12
      ^