Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index d444355e4c2074987de5c18fee37548d174cce25..968c1adde6f2844101a55e6f4855870cd895b94e 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1753,6 +1753,9 @@ void JSObject::EnqueueChangeRecord(Handle<JSObject> object, |
Isolate* isolate = object->GetIsolate(); |
HandleScope scope; |
Handle<String> type = isolate->factory()->LookupAsciiSymbol(type_str); |
+ if (object->IsJSGlobalObject()) { |
+ object = handle(JSGlobalObject::cast(*object)->global_receiver(), isolate); |
+ } |
Handle<Object> args[] = { type, object, name, old_value }; |
bool threw; |
Execution::Call(Handle<JSFunction>(isolate->observers_notify_change()), |