diff --git a/src/json-parser.h b/src/json-parser.h index 3ef5afbb89..f93b04d38f 100644 --- a/src/json-parser.h +++ b/src/json-parser.h @@ -166,7 +166,8 @@ class JsonParser BASE_EMBEDDED { template Handle JsonParser::ParseJson(Handle source) { isolate_ = source->map()->isolate(); - source_ = Handle(source->TryFlattenGetString()); + FlattenString(source); + source_ = source; source_length_ = source_->length(); // Optimized fast case where we only have ASCII characters.