Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index edb9120c7e20346cb40b4595fce818a58f8450d9..c3d3aea0d6f74df75a9261a5640a6b3323e2adfd 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -344,6 +344,8 @@ MaybeObject* JSObject::GetPropertyWithCallback(Object* receiver, |
{ |
// Leaving JavaScript. |
VMState<EXTERNAL> state(isolate); |
+ ExternalCallbackScope call_scope(isolate, |
+ v8::ToCData<Address>(fun_obj)); |
result = args.Call(call_fun, v8::Utils::ToLocal(key)); |
} |
RETURN_IF_SCHEDULED_EXCEPTION(isolate); |
@@ -2789,6 +2791,8 @@ MaybeObject* JSObject::SetPropertyWithCallback(Object* structure, |
{ |
// Leaving JavaScript. |
VMState<EXTERNAL> state(isolate); |
+ ExternalCallbackScope call_scope(isolate, |
+ v8::ToCData<Address>(call_obj)); |
args.Call(call_fun, |
v8::Utils::ToLocal(key), |
v8::Utils::ToLocal(value_handle)); |