// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this notice and otherwise comply with the Use Terms. /*--- es5id: 15.12.1.1-0-7 description: > other category z spaces are not valid JSON whitespace as specified by the production JSONWhitespace. includes: [runTestCase.js] ---*/ function testcase() { try { // the following should produce a syntax error JSON.parse('\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u30001234'); } catch (e) { return true; // treat any exception as a pass, other tests ensure that JSON.parse throws SyntaxError exceptions } } runTestCase(testcase);