OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --check_handle_count | 5 // Flags: --check-handle-count |
6 | 6 |
7 (function (s) { | 7 (function (s) { |
8 s.frob = function () { | 8 s.frob = function () { |
9 var j; | 9 var j; |
10 var p0 = /^[\],:{}\s]*$/; | 10 var p0 = /^[\],:{}\s]*$/; |
11 var p1 = /"[^"\\\n\r]*"|a|b|c|_*-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g; | 11 var p1 = /"[^"\\\n\r]*"|a|b|c|_*-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g; |
12 var p2 = /(?:^|:|,)(?:\s*\[)+/g; | 12 var p2 = /(?:^|:|,)(?:\s*\[)+/g; |
13 if (p0.test(this.replace(/\\./g, '@').replace(p1, ']').replace(p2, ''))) { | 13 if (p0.test(this.replace(/\\./g, '@').replace(p1, ']').replace(p2, ''))) { |
14 var tmp = eval('(' + this + ')'); | 14 var tmp = eval('(' + this + ')'); |
15 return 0; | 15 return 0; |
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1221 {\n \"key\": "ricric",\n \"value\": 774514\n },\ | 1221 {\n \"key\": "ricric",\n \"value\": 774514\n },\ |
1222 {\n \"key\": "ideide",\n \"value\": 774514\n },\ | 1222 {\n \"key\": "ideide",\n \"value\": 774514\n },\ |
1223 {\n \"key\": "nrynry",\n \"value\": 774514\n },\ | 1223 {\n \"key\": "nrynry",\n \"value\": 774514\n },\ |
1224 {\n \"key\": "roiroi",\n \"value\": 775515\n },\ | 1224 {\n \"key\": "roiroi",\n \"value\": 775515\n },\ |
1225 {\n \"key\": "ricric",\n \"value\": 774514\n },\ | 1225 {\n \"key\": "ricric",\n \"value\": 774514\n },\ |
1226 {\n \"key\": "ideide",\n \"value\": 774514\n },\ | 1226 {\n \"key\": "ideide",\n \"value\": 774514\n },\ |
1227 {\n \"key\": "nrynry",\n \"value\": 774514\n },\ | 1227 {\n \"key\": "nrynry",\n \"value\": 774514\n },\ |
1228 {\n \"key\": "ralral",\n \"value\": 779049\n }]'; | 1228 {\n \"key\": "ralral",\n \"value\": 779049\n }]'; |
1229 | 1229 |
1230 kvJSON.frob(); | 1230 kvJSON.frob(); |
OLD | NEW |