summaryrefslogtreecommitdiff
path: root/tests/test_std.js
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2025-05-19 17:23:25 +0200
committerFabrice Bellard <fabrice@bellard.org>2025-05-19 17:23:25 +0200
commit9bce51eefdbf38d44aa02cf34af81aafb7b7db33 (patch)
treefe6670183959fe3b6ebbe9269316514948d5c121 /tests/test_std.js
parentaaa9cea6a8831d1cad7ad2e6ea157f19116e20a2 (diff)
downloadquickjs-master.tar.gz
quickjs-master.zip
improved JSON parser conformity (chqrlie) (#250)HEADmaster
Diffstat (limited to 'tests/test_std.js')
-rw-r--r--tests/test_std.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_std.js b/tests/test_std.js
index bb942d6..df02f92 100644
--- a/tests/test_std.js
+++ b/tests/test_std.js
@@ -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);