Index: vm/dart_entry.cc |
=================================================================== |
--- vm/dart_entry.cc (revision 17884) |
+++ vm/dart_entry.cc (working copy) |
@@ -46,6 +46,7 @@ |
ASSERT(context.isolate() == Isolate::Current()); |
const Code& code = Code::Handle(function.CurrentCode()); |
ASSERT(!code.IsNull()); |
+ ASSERT(Isolate::Current()->no_callback_scope_depth() == 0); |
return entrypoint(code.EntryPoint(), |
arguments_descriptor, |
arguments, |
@@ -82,6 +83,7 @@ |
ASSERT(context.isolate() == Isolate::Current()); |
const Code& code = Code::Handle(function.CurrentCode()); |
ASSERT(!code.IsNull()); |
+ ASSERT(Isolate::Current()->no_callback_scope_depth() == 0); |
return entrypoint(code.EntryPoint(), |
arguments_descriptor, |
arguments, |
@@ -127,6 +129,7 @@ |
ASSERT(context.isolate() == Isolate::Current()); |
const Code& code = Code::Handle(function.CurrentCode()); |
ASSERT(!code.IsNull()); |
+ ASSERT(Isolate::Current()->no_callback_scope_depth() == 0); |
return entrypoint(code.EntryPoint(), |
arguments_descriptor, |
arguments, |