Index: src/handles.cc |
=================================================================== |
--- src/handles.cc (revision 6703) |
+++ src/handles.cc (working copy) |
@@ -808,6 +808,7 @@ |
ClearExceptionFlag flag) { |
// Compile the source information to a code object. |
ASSERT(info->IsOptimizing() || !info->shared_info()->is_compiled()); |
+ ASSERT(!Top::has_pending_exception()); |
bool result = Compiler::CompileLazy(info); |
ASSERT(result != Top::has_pending_exception()); |
if (!result && flag == CLEAR_EXCEPTION) Top::clear_pending_exception(); |