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

Unified Diff: test/mjsunit/debug-event-listener.js

Issue 19753: Changed the debugger API to allow only one debug event listener to be registe... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 11 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 | « test/mjsunit/debug-evaluate-with.js ('k') | test/mjsunit/debug-handle.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-event-listener.js
===================================================================
--- test/mjsunit/debug-event-listener.js (revision 1198)
+++ test/mjsunit/debug-event-listener.js (working copy)
@@ -42,7 +42,7 @@
};
// Add the debug event listener.
-Debug.addListener(listener);
+Debug.setListener(listener);
// Get events from handled exceptions.
Debug.setBreakOnException();
@@ -70,4 +70,4 @@
assertTrue(lastDebugEvent.event == Debug.DebugEvent.Break);
assertEquals(lastDebugEvent.frameFuncName, "a");
-Debug.removeListener(listener);
+Debug.setListener(null);
« no previous file with comments | « test/mjsunit/debug-evaluate-with.js ('k') | test/mjsunit/debug-handle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698