diff options
Diffstat (limited to 'js/src/tests/non262/JSON/parse-syntax-errors-01.js')
-rw-r--r-- | js/src/tests/non262/JSON/parse-syntax-errors-01.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/non262/JSON/parse-syntax-errors-01.js b/js/src/tests/non262/JSON/parse-syntax-errors-01.js new file mode 100644 index 0000000000..cbb49b0eb7 --- /dev/null +++ b/js/src/tests/non262/JSON/parse-syntax-errors-01.js @@ -0,0 +1,13 @@ +testJSON("{}...", true); +testJSON('{"foo": truBBBB}', true); +testJSON('{foo: truBBBB}', true); +testJSON('{"foo": undefined}', true); +testJSON('{"foo": ]', true); +testJSON('{"foo', true); + +/******************************************************************************/ + +if (typeof reportCompare === "function") + reportCompare(true, true); + +print("Tests complete"); |