Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index c9e4c0f21974a8983024e4bc0b4f1415cccc87e1..aabb8c7bd7ec80c364f3a9aac27d48aa412db297 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -540,8 +540,10 @@ void ArrayLiteral::BuildConstantElements(Isolate* isolate) { |
depth_acc = m_literal->depth() + 1; |
} |
} |
- Handle<Object> boilerplate_value = GetBoilerplateValue(element, isolate); |
+ // New handle scope here, needs to be after BuildContants(). |
+ HandleScope scope(isolate); |
+ Handle<Object> boilerplate_value = GetBoilerplateValue(element, isolate); |
if (boilerplate_value->IsTheHole()) { |
is_holey = true; |
continue; |