| Index: src/json-stringifier.h
|
| diff --git a/src/json-stringifier.h b/src/json-stringifier.h
|
| index 17c6b6f11141c52a589515f5d706371112411a8d..9b8a79c1c6e16198cfaf887ba47dc7cbacc9653f 100644
|
| --- a/src/json-stringifier.h
|
| +++ b/src/json-stringifier.h
|
| @@ -501,8 +501,11 @@ BasicJsonStringifier::Result BasicJsonStringifier::SerializeGeneric(
|
| part_length_ = kInitialPartLength; // Allocate conservatively.
|
| Extend(); // Attach current part and allocate new part.
|
| // Attach result string to the accumulator.
|
| - Handle<String> cons = factory_->NewConsString(accumulator(), result_string);
|
| - RETURN_IF_EMPTY_HANDLE_VALUE(isolate_, cons, EXCEPTION);
|
| + Handle<String> cons;
|
| + ASSIGN_RETURN_ON_EXCEPTION_VALUE(
|
| + isolate_, cons,
|
| + factory_->NewConsString(accumulator(), result_string),
|
| + EXCEPTION);
|
| set_accumulator(cons);
|
| return SUCCESS;
|
| }
|
| @@ -731,7 +734,8 @@ void BasicJsonStringifier::Accumulate() {
|
| set_accumulator(factory_->empty_string());
|
| overflowed_ = true;
|
| } else {
|
| - set_accumulator(factory_->NewConsString(accumulator(), current_part_));
|
| + set_accumulator(factory_->NewConsString(accumulator(),
|
| + current_part_).ToHandleChecked());
|
| }
|
| }
|
|
|
|
|