Index: test/mjsunit/regress/regress-2318.js |
diff --git a/test/mjsunit/regress/regress-2296.js b/test/mjsunit/regress/regress-2318.js |
similarity index 88% |
copy from test/mjsunit/regress/regress-2296.js |
copy to test/mjsunit/regress/regress-2318.js |
index c00f14f172a0cb099d2ef411fe25bfffbab7e559..677cdecc839562fc3600e654a7bc75e487ab272e 100644 |
--- a/test/mjsunit/regress/regress-2296.js |
+++ b/test/mjsunit/regress/regress-2318.js |
@@ -27,14 +27,17 @@ |
// Flags: --expose-debug-as debug |
-Debug = debug.Debug |
+function f() { |
+ var i = 0; |
+ f(1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0); |
+}; |
+ |
+Debug = debug.Debug; |
+var bp = Debug.setBreakPoint(f, 0); |
function listener(event, exec_state, event_data, data) { |
- event_data.script().setSource(1); |
+ result = exec_state.frame().evaluate("i").value(); |
}; |
Debug.setListener(listener); |
- |
-eval('0'); |
- |
-Debug.setListener(null); |
+assertThrows(function() { f(); }, RangeError); |