Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 00d01001240acac63c91356ffe00fdda5a96fe3f..93331d5051ca26fe3f1698a5383acc32bf540e5a 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -525,8 +525,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; |