summaryrefslogtreecommitdiff
path: root/deps/v8/src/string-builder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/string-builder.cc')
-rw-r--r--deps/v8/src/string-builder.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/string-builder.cc b/deps/v8/src/string-builder.cc
index 6c5144d574..bee5db9508 100644
--- a/deps/v8/src/string-builder.cc
+++ b/deps/v8/src/string-builder.cc
@@ -52,7 +52,8 @@ IncrementalStringBuilder::IncrementalStringBuilder(Isolate* isolate)
part_length_(kInitialPartLength),
current_index_(0) {
// Create an accumulator handle starting with the empty string.
- accumulator_ = Handle<String>::New(isolate->heap()->empty_string(), isolate);
+ accumulator_ =
+ Handle<String>::New(ReadOnlyRoots(isolate).empty_string(), isolate);
current_part_ =
factory()->NewRawOneByteString(part_length_).ToHandleChecked();
}