test/nashorn/script/basic/JDK-8019508.js.EXPECTED
author mikael
Thu, 19 Apr 2018 17:13:19 -0700
changeset 49838 b37e0785ce0b
parent 47216 71c04702a3d5
permissions -rw-r--r--
8202052: Disable warnings when building libawt with VS2017 Reviewed-by: erikj, prr
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
      ^