Commit 4cba3faf authored by whesse@chromium.org's avatar whesse@chromium.org

Ensure that a string is flattened when entering JsonParser::ParseJson. Fixes issue v8:1572.

BUG=v8:1572
TEST=mjsunit/regress/regress-crbug-l84186.js

Review URL: http://codereview.chromium.org/7480044

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8746 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e4e83422
......@@ -166,7 +166,8 @@ class JsonParser BASE_EMBEDDED {
template <bool seq_ascii>
Handle<Object> JsonParser<seq_ascii>::ParseJson(Handle<String> source) {
isolate_ = source->map()->isolate();
source_ = Handle<String>(source->TryFlattenGetString());
FlattenString(source);
source_ = source;
source_length_ = source_->length();
// Optimized fast case where we only have ASCII characters.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment