Index: src/string-builder.h |
diff --git a/src/string-builder.h b/src/string-builder.h |
index a37630131e07b0263b506c1dac9fae407a3897a9..edc6476a45a3518ff32e2a6c69c9428111667bcf 100644 |
--- a/src/string-builder.h |
+++ b/src/string-builder.h |
@@ -174,6 +174,11 @@ class FixedArrayBuilder { |
int capacity() { return array_->length(); } |
+ Handle<JSArray> ToJSArray(Handle<JSArray> target_array) { |
+ JSArray::SetContent(target_array, array_); |
+ target_array->set_length(Smi::FromInt(length_)); |
+ return target_array; |
+ } |
private: |
Handle<FixedArray> array_; |