Index: src/json-stringifier.h |
diff --git a/src/json-stringifier.h b/src/json-stringifier.h |
index bbc80f2ca093bb610ba14526355d5175607b819f..c4f6b1fc07377dbb6cbd17531b5314641b60a36c 100644 |
--- a/src/json-stringifier.h |
+++ b/src/json-stringifier.h |
@@ -264,7 +264,7 @@ BasicJsonStringifier::BasicJsonStringifier(Isolate* isolate) |
overflowed_(false) { |
factory_ = isolate_->factory(); |
accumulator_store_ = Handle<JSValue>::cast( |
- factory_->ToObject(factory_->empty_string())); |
+ Object::ToObject(isolate, factory_->empty_string()).ToHandleChecked()); |
part_length_ = kInitialPartLength; |
current_part_ = factory_->NewRawOneByteString(part_length_).ToHandleChecked(); |
tojson_string_ = factory_->toJSON_string(); |