Index: test/mjsunit/debug-negative-break-points.js |
diff --git a/test/mjsunit/debug-negative-break-points.js b/test/mjsunit/debug-negative-break-points.js |
index d2383c97b0ede2e0b1ee7f8291e3e0a873e03787..1eb8943a074f31d4103bde9c279b4711622c31dc 100644 |
--- a/test/mjsunit/debug-negative-break-points.js |
+++ b/test/mjsunit/debug-negative-break-points.js |
@@ -33,6 +33,14 @@ function g(x) { |
} |
} |
+function h(x) { |
+ var a = undefined; |
+ try { |
+ var x = a(); |
+ } catch (e) { |
+ } |
+} |
+ |
Debug.setListener(listener); |
assertCount(0, 0); |
@@ -79,5 +87,13 @@ assertCount(8, 4); |
g(0); |
assertCount(8, 4); |
+h(0); |
+assertCount(8, 5); |
+Debug.setBreakPoint(h, 3, 0, "x > 0"); |
+h(1); |
+assertCount(9, 6); |
+h(0); |
+assertCount(9, 6); |
+ |
Debug.clearBreakOnException(); |
Debug.setListener(null); |