test/script/basic/NASHORN-575.js.EXPECTED

Mon, 07 Apr 2014 21:57:33 +0530

author
sundar
date
Mon, 07 Apr 2014 21:57:33 +0530
changeset 830
3cb09c560108
parent 0
b1a7da25b547
permissions
-rw-r--r--

8039387: Nashorn supports indexed access of List elements, but length property is not supported
Reviewed-by: lagergren, jlaskey

     1 SyntaxError: Invalid JSON: <json>:1:0 Expected json literal but found /
     2 // foo
     3 ^
     4 SyntaxError: Invalid JSON: <json>:1:0 Expected json literal but found /
     5 /* foo */
     6 ^
     7 SyntaxError: Invalid JSON: <json>:1:0 Expected json literal but found /
     8 /foo/
     9 ^
    10 SyntaxError: Invalid JSON: <json>:1:15 Expected , or } but found /
    11 {"foo" : "bar" // foo }
    12                ^
    13 SyntaxError: Invalid JSON: <json>:1:15 Expected , or } but found /
    14 {"foo" : "bar" /* foo */ }
    15                ^
    16 SyntaxError: Invalid JSON: <json>:1:9 Expected json literal but found /
    17 {"foo" : /foo/}
    18          ^

mercurial