Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 597e0df9c312d455a67ec322c2f77566276d72d0..2b5d18f53271d22abe96c6efab151bd55211de34 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2961,7 +2961,7 @@ Object* Map::prototype() { |
void Map::set_prototype(Object* value, WriteBarrierMode mode) { |
- ASSERT(value->IsNull() || value->IsJSObject()); |
+ ASSERT(value->IsNull() || value->IsJSReceiver()); |
WRITE_FIELD(this, kPrototypeOffset, value); |
CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kPrototypeOffset, mode); |
} |