| Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| index e6e758ebf8e9f00ec11c4f008efe2ce9c7ba7d71..47e2602f7e37d9726ab57d836ba053eff32358a3 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| @@ -346,6 +346,14 @@ SDK.DebuggerModel = class extends SDK.SDKModel {
|
| }
|
|
|
| /**
|
| + * @param {!SDK.ExecutionContext} executionContext
|
| + * @return {!Array<!SDK.Script>}
|
| + */
|
| + scriptsForExecutionContext(executionContext) {
|
| + return Object.values(this._scripts).filter(script => script.executionContextId === executionContext.id);
|
| + }
|
| +
|
| + /**
|
| * @param {!Protocol.Runtime.ScriptId} scriptId
|
| * @param {string} newSource
|
| * @param {function(?Protocol.Error, !Protocol.Runtime.ExceptionDetails=)} callback
|
|
|