Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: test/mjsunit/regress/regress-2318.js

Issue 10914290: Fix debugger's eval when close to stack overflow. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698