nashorn/test/script/basic/JDK-8019508.js.EXPECTED
author sundar
Wed, 16 Dec 2015 16:42:03 +0530
changeset 34735 0f41d334aa24
parent 20929 f2bd18181940
permissions -rw-r--r--
8145486: jjs should support documentation key shortcut in interactive mode Reviewed-by: mhaupt, 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
      ^