Index: src/global-handles.cc |
=================================================================== |
--- src/global-handles.cc (revision 1641) |
+++ src/global-handles.cc (working copy) |
@@ -153,7 +153,11 @@ |
// behavior. |
WeakReferenceCallback func = callback(); |
if (func != NULL) { |
- func(v8::Persistent<v8::Object>(ToApi<v8::Object>(handle())), par); |
+ v8::Persistent<v8::Object> object = ToApi<v8::Object>(handle()); |
+ { // Leaving V8. |
Mads Ager (chromium)
2009/03/30 13:26:06
This probably does not lint?
|
+ VMState state(EXTERNAL); |
+ func(object, par); |
+ } |
} |
} |