Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index df8e8d7c6448889c0ae7689a8e7d0ac199895aae..82206dd12675514aeef99eaed9a52b55b56886e2 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -635,6 +635,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateArrayLiteral) { |
// Check if boilerplate exists. If not, create it first. |
Handle<Object> boilerplate(literals->get(literals_index), isolate); |
if (*boilerplate == isolate->heap()->undefined_value()) { |
+ ASSERT(*elements != isolate->heap()->empty_fixed_array()); |
boilerplate = |
Runtime::CreateArrayLiteralBoilerplate(isolate, literals, elements); |
if (boilerplate.is_null()) return Failure::Exception(); |