Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 57f416514333a65d65752c4ea1a8698fd8da3301..5b442ed06cfc386c44173778eaa80b4b5a326a9a 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4872,7 +4872,7 @@ MaybeObject* Map::CopyReplaceDescriptors(DescriptorArray* descriptors, |
if (!maybe_result->To(&result)) return maybe_result; |
if (last_added == kNoneAdded) { |
- ASSERT(descriptors->IsEmpty()); |
+ ASSERT(descriptors->number_of_descriptors() == 0); |
} else { |
ASSERT(descriptors->GetDetails(last_added).index() == |
descriptors->number_of_descriptors()); |