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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-generator-location.html

Issue 2112673003: [DevTools] Move suspended generator location to internal properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-generator-location.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-generator-location.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-generator-location.html
index 6c41f6c7807b1f0892b69009d78b0ad80418e395..2a159f470b72d72615fab4b1065218f938f777a5 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-generator-location.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-generator-location.html
@@ -35,7 +35,19 @@ function test()
function didEvaluate(remote)
{
- panel._showGeneratorLocation(remote);
+ remote.getOwnPropertiesPromise().then(revealLocation.bind(null, remote));
+ }
+
+ function revealLocation(remote, properties)
+ {
+ var loc;
+ for (var prop of properties.internalProperties) {
+ if (prop.name === "[[GeneratorLocation]]") {
+ loc = prop.value.value;
+ break;
+ }
+ }
+ WebInspector.Revealer.reveal(remote.debuggerModel().createRawLocationByScriptId(loc.scriptId, loc.lineNumber, loc.columnNumber));
}
function showUISourceCodeHook(uiSourceCode, lineNumber, columnNumber, forceShowInPanel)

Powered by Google App Engine
This is Rietveld 408576698