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

Unified Diff: test/mjsunit/regress/regress-4703.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-2318.js ('k') | test/mjsunit/regress/regress-5071.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-4703.js
diff --git a/test/mjsunit/regress/regress-4703.js b/test/mjsunit/regress/regress-4703.js
index dad8a978741d806ce419a4e6117a86dbb51f3aa2..f494508659b3c49beb51a7a25321a9b6afed03dd 100644
--- a/test/mjsunit/regress/regress-4703.js
+++ b/test/mjsunit/regress/regress-4703.js
@@ -4,8 +4,10 @@
// Flags: --expose-debug-as debug
+var exception = null;
+
function listener(event, exec_state, event_data, data) {
- if (event != Debug.DebugEvent.Break) return;
+ if (event != debug.Debug.DebugEvent.Break) return;
try {
var all_scopes = exec_state.frame().allScopes();
assertEquals([ debug.ScopeType.Block,
@@ -15,6 +17,7 @@ function listener(event, exec_state, event_data, data) {
all_scopes.map(scope => scope.scopeType()));
} catch (e) {
exception = e;
+ print(e);
}
}
@@ -28,3 +31,6 @@ debug.Debug.setListener(listener);
}
debugger;
})();
+
+debug.Debug.setListener(null);
+assertNull(exception);
« no previous file with comments | « test/mjsunit/regress/regress-2318.js ('k') | test/mjsunit/regress/regress-5071.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698