michael@0: // Ported from dom/src/json/test/unit/test_syntax_errors.js michael@0: michael@0: testJSON("{}...", true); michael@0: testJSON('{"foo": truBBBB}', true); michael@0: testJSON('{foo: truBBBB}', true); michael@0: testJSON('{"foo": undefined}', true); michael@0: testJSON('{"foo": ]', true); michael@0: testJSON('{"foo', true); michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete");