Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 274c34ddebaf24283d1f0d1d21a5f9217dc469d2..795eda073c18e44244093ccc8a88785285d9015a 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -808,6 +808,7 @@ static bool CompileLazyHelper(CompilationInfo* info, |
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(); |