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

Unified Diff: test/mjsunit/regress/regress-crbug-107996.js

Issue 2469043003: [debugger] fix blacklisted tests. (Closed)
Patch Set: fix 2318 Created 4 years, 1 month 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 | « test/mjsunit/regress/regress-998565.js ('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-crbug-107996.js
diff --git a/test/mjsunit/regress/regress-crbug-107996.js b/test/mjsunit/regress/regress-crbug-107996.js
index dfe07e59de5ef31fca7949a90ddb06a3d0dfc70c..077c1830fd74e39ccaabb54f9618dfb33a904982 100644
--- a/test/mjsunit/regress/regress-crbug-107996.js
+++ b/test/mjsunit/regress/regress-crbug-107996.js
@@ -30,15 +30,19 @@
Debug = debug.Debug;
Debug.setListener(listener);
-
+var exception = null;
var fourteen;
var four_in_debugger = [];
function listener(event, exec_state, event_data, data) {
if (event == Debug.DebugEvent.Break) {
- for (var i = 0; i < exec_state.frameCount(); i++) {
- var frame = exec_state.frame(i);
- four_in_debugger[i] = frame.evaluate("four", false).value();
+ try {
+ for (var i = 0; i < exec_state.frameCount() - 1; i++) {
+ var frame = exec_state.frame(i);
+ four_in_debugger[i] = frame.evaluate("four", false).value();
+ }
+ } catch (e) {
+ exception = e;
}
}
}
@@ -62,3 +66,4 @@ assertEquals(4, four_in_debugger[1]);
assertEquals(4, four_in_debugger[2]);
Debug.setListener(null);
+assertNull(exception);
« no previous file with comments | « test/mjsunit/regress/regress-998565.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698