Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index d625d644c776e744251d69bfc7f582b77751c1b2..ee1c2bece71d92b33f3502367c37e25fbb221784 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -871,10 +871,12 @@ bool CompileLazyInLoop(Handle<JSFunction> function, |
} |
-bool CompileOptimized(Handle<JSFunction> function, int osr_ast_id) { |
+bool CompileOptimized(Handle<JSFunction> function, |
+ int osr_ast_id, |
+ ClearExceptionFlag flag) { |
CompilationInfo info(function); |
info.SetOptimizing(osr_ast_id); |
- bool result = CompileLazyHelper(&info, KEEP_EXCEPTION); |
+ bool result = CompileLazyHelper(&info, flag); |
if (result) PROFILE(FunctionCreateEvent(*function)); |
return result; |
} |