Index: test/cctest/compiler/test-run-jsexceptions.cc |
diff --git a/test/cctest/compiler/test-run-jsexceptions.cc b/test/cctest/compiler/test-run-jsexceptions.cc |
index 74990daac9ff0fcc9391fff3819f7e4eda9e8eb9..7610962aa2a219bb17a0740a776674746772e293 100644 |
--- a/test/cctest/compiler/test-run-jsexceptions.cc |
+++ b/test/cctest/compiler/test-run-jsexceptions.cc |
@@ -118,6 +118,28 @@ TEST(CatchBreak) { |
} |
+TEST(CatchCall) { |
+ i::FLAG_turbo_exceptions = true; |
+ const char* src = |
+ "(function(fun) {" |
+ " var r = '-';" |
+ " try {" |
+ " r += 'A-';" |
+ " fun();" |
+ " } catch (e) {" |
+ " r += e;" |
+ " }" |
+ " return r;" |
+ "})"; |
+ FunctionTester T(src); |
+ |
+ CompileRun("function thrower() { throw 'T-'; }"); |
+#if 0 // TODO(mstarzinger): Enable once we have exception handlers. |
+ T.CheckCall(T.Val("-A-T-"), T.NewFunction("thrower")); |
+#endif |
+} |
+ |
+ |
TEST(Finally) { |
i::FLAG_turbo_exceptions = true; |
const char* src = |