diff options
Diffstat (limited to 'src/object.cc')
| -rw-r--r-- | src/object.cc | 5 |
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; } |