summaryrefslogtreecommitdiff
path: root/src/object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/object.cc')
-rw-r--r--src/object.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/object.cc b/src/object.cc
index 342599e174..1f64faa3f7 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -1239,11 +1239,6 @@ Array* Array::Alloc(Class* array_class, int32_t component_count, size_t componen
DCHECK(array->IsArrayInstance());
array->SetLength(component_count);
}
-
- // TODO: throw OutOfMemoryError. (here or in Heap::AllocObject?)
- CHECK(array != NULL) << PrettyClass(array_class)
- << " component_count=" << component_count
- << " component_size=" << component_size;
return array;
}