| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 05c00824009233bb90642c648d78d262f6a73e17..cb7b6eb9106583fd0c1e3e286a724e87f267aef2 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -1749,6 +1749,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()),
|
|
|