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

Unified Diff: test/debugger/debug/debug-liveedit-check-stack.js

Issue 2636913002: [liveedit] reimplement frame restarting. (Closed)
Patch Set: rebase Created 3 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/cctest/test-disasm-x64.cc ('k') | test/debugger/debug/debug-liveedit-replace-code.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/debugger/debug/debug-liveedit-check-stack.js
diff --git a/test/debugger/debug/debug-liveedit-check-stack.js b/test/debugger/debug/debug-liveedit-check-stack.js
index bba7acafecd6ea0a73f015f6ea752177fb0b75ff..e016a5391c3f692762b18842518dc7bda0855c6d 100644
--- a/test/debugger/debug/debug-liveedit-check-stack.js
+++ b/test/debugger/debug/debug-liveedit-check-stack.js
@@ -89,9 +89,28 @@ function WrapInNativeCall(f) {
};
}
+function ExecuteInDebugContext(f) {
+ var result;
+ var exception = null;
+ Debug.setListener(function(event) {
+ if (event == Debug.DebugEvent.Break) {
+ try {
+ result = f();
+ } catch (e) {
+ // Rethrow this exception later.
+ exception = e;
+ }
+ }
+ });
+ debugger;
+ Debug.setListener(null);
+ if (exception !== null) throw exception;
+ return result;
+}
+
function WrapInDebuggerCall(f) {
return function() {
- return %ExecuteInDebugContext(f);
+ return ExecuteInDebugContext(f);
};
}
« no previous file with comments | « test/cctest/test-disasm-x64.cc ('k') | test/debugger/debug/debug-liveedit-replace-code.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698