mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
[globals] self.UI.context
R=jacktfranklin@chromium.org Bug: 1058320 Change-Id: Icc1d806782e7624fff02e719670a2cca59070ddd Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2364594 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
This commit is contained in:
committed by
Commit Bot
parent
8277d4dd06
commit
d1a00aacb9
@@ -116,7 +116,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
|
||||
* @return {!Promise<?Workspace.UISourceCode.UILocation>}
|
||||
*/
|
||||
async _getSelectedUILocation() {
|
||||
const details = self.UI.context.flavor(SDK.DebuggerModel.DebuggerPausedDetails);
|
||||
const details = UI.Context.Context.instance().flavor(SDK.DebuggerModel.DebuggerPausedDetails);
|
||||
if (details && details.callFrames.length) {
|
||||
return await Bindings.DebuggerWorkspaceBinding.DebuggerWorkspaceBinding.instance().rawLocationToUILocation(
|
||||
details.callFrames[0].location());
|
||||
|
||||
Reference in New Issue
Block a user