Reviewers: Toon Verwaest,
Description:
Fix failures caused by r12598.
[email protected]
BUG=
Please review this at https://chromiumcodereview.appspot.com/10958070/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/json-parser.h
Index: src/json-parser.h
diff --git a/src/json-parser.h b/src/json-parser.h
index
0c2cb2d3496f0e187dc518366565459cf6f23f6d..ad01726415d3b47543160c521f695c2498560b0e
100644
--- a/src/json-parser.h
+++ b/src/json-parser.h
@@ -577,6 +577,7 @@ Handle<String> JsonParser<seq_ascii>::ScanJsonString() {
position_,
position);
}
+ if (c0_ < 0x20) return Handle<String>::null();
running_hash = StringHasher::AddCharacterCore(running_hash, c0);
position++;
if (position > source_length_) return Handle<String>::null();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev