nashorn/test/script/basic/JDK-8025147.js.EXPECTED
author sundar
Wed, 06 May 2015 20:04:42 +0530
changeset 30394 72a59e4dffea
parent 20218 5818e1531c40
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:
20218
5818e1531c40 8025147: Trailing comma is not allowed in JSONArray and JSONObject
sundar
parents:
diff changeset
     1
SyntaxError: Invalid JSON: <json>:1:12 Trailing comma is not allowed in JSON
5818e1531c40 8025147: Trailing comma is not allowed in JSONArray and JSONObject
sundar
parents:
diff changeset
     2
{ "a": 333, }
5818e1531c40 8025147: Trailing comma is not allowed in JSONArray and JSONObject
sundar
parents:
diff changeset
     3
            ^
5818e1531c40 8025147: Trailing comma is not allowed in JSONArray and JSONObject
sundar
parents:
diff changeset
     4
SyntaxError: Invalid JSON: <json>:1:8 Trailing comma is not allowed in JSON
5818e1531c40 8025147: Trailing comma is not allowed in JSONArray and JSONObject
sundar
parents:
diff changeset
     5
[ 4343, ]
5818e1531c40 8025147: Trailing comma is not allowed in JSONArray and JSONObject
sundar
parents:
diff changeset
     6
        ^