nashorn/test/script/basic/JDK-8019508.js.EXPECTED
author hannesw
Fri, 03 Feb 2017 13:28:00 +0100
changeset 43555 1bb10bccf057
parent 20929 f2bd18181940
permissions -rw-r--r--
8173888: Test for JDK-8169481 causes stack overflows in parser tests Reviewed-by: jlaskey, sundar
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
      ^