Index: src/lookup.h |
diff --git a/src/lookup.h b/src/lookup.h |
index ed54a7ef7306c7603f626f7b0c529f624a0590b6..29b7d77b270d26447f8190d651ba1c1704462834 100644 |
--- a/src/lookup.h |
+++ b/src/lookup.h |
@@ -59,6 +59,12 @@ class LookupIterator final BASE_EMBEDDED { |
holder_map_(holder_->map(), isolate_), |
initial_holder_(holder_), |
number_(DescriptorArray::kNotFound) { |
+#if 0 // TODO(verwaest): Enable once blocking hacks are removed. |
+#ifdef DEBUG |
+ uint32_t index; // Assert that the name is not an array index. |
+ DCHECK(!name->AsArrayIndex(&index)); |
+#endif // DEBUG |
+#endif |
Next(); |
} |
@@ -79,6 +85,12 @@ class LookupIterator final BASE_EMBEDDED { |
holder_map_(holder_->map(), isolate_), |
initial_holder_(holder_), |
number_(DescriptorArray::kNotFound) { |
+#if 0 // TODO(verwaest): Enable once blocking hacks are removed. |
+#ifdef DEBUG |
+ uint32_t index; // Assert that the name is not an array index. |
+ DCHECK(!name->AsArrayIndex(&index)); |
+#endif // DEBUG |
+#endif |
Next(); |
} |