Index: bleeding_edge/src/execution.cc |
=================================================================== |
--- bleeding_edge/src/execution.cc (revision 3503) |
+++ bleeding_edge/src/execution.cc (working copy) |
@@ -79,6 +79,10 @@ |
receiver = Handle<JSObject>(global->global_receiver()); |
} |
+ // Make sure that the global object of the context we're about to |
+ // make the current one is indeed a global object. |
+ ASSERT(func->context()->global()->IsGlobalObject()); |
+ |
{ |
// Save and restore context around invocation and block the |
// allocation of handles without explicit handle scopes. |