mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 15:04:24 +03:00
improved JSON parser conformity (chqrlie) (#250)
This commit is contained in:
@@ -134,7 +134,7 @@ function test_ext_json()
|
||||
"y":true, // also a comment
|
||||
z2:null, // unquoted property names
|
||||
"a":[+1,0o10,0xa0,], // plus prefix, octal, hexadecimal
|
||||
"s":"str",} // trailing comma in objects and arrays
|
||||
"s":'str',} // trailing comma in objects and arrays, single quoted string
|
||||
`;
|
||||
obj = std.parseExtJSON(input);
|
||||
assert(JSON.stringify(obj), expected);
|
||||
|
Reference in New Issue
Block a user