| 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 58940245aed4180c88b6e1527760689a778080cc..f3805a1d3c2432c28c187906203fc5daee96c232 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| @@ -637,6 +637,34 @@ WebInspector.DebuggerModel.prototype = {
|
| },
|
|
|
| /**
|
| + * @param {!Array<!DebuggerAgent.BlackboxPattern>} patterns
|
| + * @return {!Promise<boolean>}
|
| + */
|
| + setBlackboxPatterns: function(patterns)
|
| + {
|
| + return new Promise(setBlackboxPatterns.bind(this));
|
| +
|
| + /**
|
| + * @param {function(?)} fulfill
|
| + * @param {function(*)} reject
|
| + * @this {WebInspector.DebuggerModel}
|
| + */
|
| + function setBlackboxPatterns(fulfill, reject)
|
| + {
|
| + this._agent.setBlackboxPatterns(patterns, callback);
|
| + /**
|
| + * @param {?Protocol.Error} error
|
| + */
|
| + function callback(error)
|
| + {
|
| + if (error)
|
| + console.error(error);
|
| + fulfill(!error);
|
| + }
|
| + }
|
| + },
|
| +
|
| + /**
|
| * @param {!WebInspector.Script} script
|
| * @param {number} lineNumber
|
| * @param {number} columnNumber
|
|
|