15.12.1.1-g2-4.js (332B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es5id: 15.12.1.1-g2-4 6 description: A JSONString must both begin and end with double quotes 7 ---*/ 8 9 assert.throws(SyntaxError, function() { 10 JSON.parse('"ab'+"c'"); 11 }); 12 13 reportCompare(0, 0);