diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-08-11 23:59:21 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-08-11 23:59:21 -0700 |
commit | 89bed195134317a10e6ffffe23a90473790f0a7f (patch) | |
tree | 2e3d714711c151458e9ff18bbfa9d04859939ba1 /deps/v8/src/json-parser.h | |
parent | fb7faefbf53f2e27aa2e9cf9dbd88163eeaefb38 (diff) | |
download | node-new-89bed195134317a10e6ffffe23a90473790f0a7f.tar.gz |
Upgrade V8 to v3.5.4
Diffstat (limited to 'deps/v8/src/json-parser.h')
-rw-r--r-- | deps/v8/src/json-parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/json-parser.h b/deps/v8/src/json-parser.h index f93b04d38f..68eab65fd5 100644 --- a/deps/v8/src/json-parser.h +++ b/deps/v8/src/json-parser.h @@ -458,12 +458,12 @@ Handle<String> JsonParser<seq_ascii>::SlowScanJsonString( String::WriteToFlat(*prefix, dest, start, end); while (c0_ != '"') { + // Check for control character (0x00-0x1f) or unterminated string (<0). + if (c0_ < 0x20) return Handle<String>::null(); if (count >= length) { // We need to create a longer sequential string for the result. return SlowScanJsonString<StringType, SinkChar>(seq_str, 0, count); } - // Check for control character (0x00-0x1f) or unterminated string (<0). - if (c0_ < 0x20) return Handle<String>::null(); if (c0_ != '\\') { // If the sink can contain UC16 characters, or source_ contains only // ASCII characters, there's no need to test whether we can store the |