Index: test/mjsunit/debug-clearbreakpointgroup.js |
diff --git a/test/mjsunit/debug-clearbreakpointgroup.js b/test/mjsunit/debug-clearbreakpointgroup.js |
index 137dfecbecbedd20c0db312f5abb224806061b9f..3c03bdaa3925998cc6fda1f1fd7f6befdcb27b27 100644 |
--- a/test/mjsunit/debug-clearbreakpointgroup.js |
+++ b/test/mjsunit/debug-clearbreakpointgroup.js |
@@ -36,13 +36,17 @@ var exception = false; |
var base_request = '"seq":0,"type":"request","command":"clearbreakpointgroup"'; |
var scriptId = null; |
+var muteListener = false; |
function safeEval(code) { |
try { |
+ muteListener = true; |
return eval('(' + code + ')'); |
} catch (e) { |
assertEquals(void 0, e); |
return undefined; |
+ } finally { |
+ muteListener = false; |
} |
} |
@@ -58,6 +62,7 @@ function testArguments(dcp, arguments, success) { |
} |
function listener(event, exec_state, event_data, data) { |
+ if (muteListener) return; |
try { |
if (event == Debug.DebugEvent.Break) { |
// Get the debug command processor. |