Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 787b6d82b47145688e92447ff2e57f24473ff5d7..c63238f6c0dcc892343aed18c73696f917d1df72 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5652,11 +5652,9 @@ Handle<Object> JSObject::Freeze(Handle<JSObject> object) { |
void JSObject::SetObserved(Handle<JSObject> object) { |
+ ASSERT(!object->map()->is_observed()); |
Isolate* isolate = object->GetIsolate(); |
- if (object->map()->is_observed()) |
- return; |
- |
LookupResult result(isolate); |
object->map()->LookupTransition(*object, |
isolate->heap()->observed_symbol(), |