Index: src/json-stringifier.h |
diff --git a/src/json-stringifier.h b/src/json-stringifier.h |
index 9b8a79c1c6e16198cfaf887ba47dc7cbacc9653f..17c6b6f11141c52a589515f5d706371112411a8d 100644 |
--- a/src/json-stringifier.h |
+++ b/src/json-stringifier.h |
@@ -501,11 +501,8 @@ 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; |
- ASSIGN_RETURN_ON_EXCEPTION_VALUE( |
- isolate_, cons, |
- factory_->NewConsString(accumulator(), result_string), |
- EXCEPTION); |
+ Handle<String> cons = factory_->NewConsString(accumulator(), result_string); |
+ RETURN_IF_EMPTY_HANDLE_VALUE(isolate_, cons, EXCEPTION); |
set_accumulator(cons); |
return SUCCESS; |
} |
@@ -734,8 +731,7 @@ void BasicJsonStringifier::Accumulate() { |
set_accumulator(factory_->empty_string()); |
overflowed_ = true; |
} else { |
- set_accumulator(factory_->NewConsString(accumulator(), |
- current_part_).ToHandleChecked()); |
+ set_accumulator(factory_->NewConsString(accumulator(), current_part_)); |
} |
} |