| 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)
|
|
|