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

Unified Diff: test/mjsunit/debug-clearbreakpointgroup.js

Issue 781623004: [V8] Report v8::AfterCompile and v8::CompileError to listener on pause (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
Index: test/mjsunit/debug-clearbreakpointgroup.js
diff --git a/test/mjsunit/debug-clearbreakpointgroup.js b/test/mjsunit/debug-clearbreakpointgroup.js
index 137dfecbecbedd20c0db312f5abb224806061b9f..f8c99e0760fe593124b9ccbdd8332158387d9821 100644
--- a/test/mjsunit/debug-clearbreakpointgroup.js
+++ b/test/mjsunit/debug-clearbreakpointgroup.js
@@ -36,12 +36,17 @@ var exception = false;
var base_request = '"seq":0,"type":"request","command":"clearbreakpointgroup"';
var scriptId = null;
+var muteListener = false;
function safeEval(code) {
try {
- return eval('(' + code + ')');
+ muteListener = true;
yurys 2014/12/08 14:31:22 try/finally
kozy 2014/12/08 14:53:01 Done.
+ var result = eval('(' + code + ')');
+ muteListener = false;
+ return result;
} catch (e) {
assertEquals(void 0, e);
+ muteListener = false;
return undefined;
}
}
@@ -58,6 +63,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.

Powered by Google App Engine
This is Rietveld 408576698