Index: src/debug/liveedit.cc |
diff --git a/src/debug/liveedit.cc b/src/debug/liveedit.cc |
index 91c990d19b7d078600d7b59bc7429e3c353c1b7c..2264154c52ceae99a41b93b4730cab6ab56cabd0 100644 |
--- a/src/debug/liveedit.cc |
+++ b/src/debug/liveedit.cc |
@@ -1909,8 +1909,9 @@ Handle<JSArray> LiveEdit::CheckAndDropActivations( |
FixedArray::cast(old_shared_array->elements())); |
Handle<JSArray> result = isolate->factory()->NewJSArray(len); |
+ JSObject::EnsureWritableFastElements(result); |
Handle<FixedArray> result_elements = |
- JSObject::EnsureWritableFastElements(result); |
+ handle(FixedArray::cast(result->elements()), isolate); |
// Fill the default values. |
for (int i = 0; i < len; i++) { |