| 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 f8404c16346fa6d2190d8ea9e24aaac1e0655225..05ca7376f02882fdc9de88f4d4e5928a03baec95 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js
|
| @@ -1186,6 +1186,36 @@ SDK.DebuggerModel.CallFrame = class {
|
| }
|
|
|
| /**
|
| + * @param {string} code
|
| + * @param {string} objectGroup
|
| + * @param {boolean} includeCommandLineAPI
|
| + * @param {boolean} silent
|
| + * @param {boolean} returnByValue
|
| + * @param {boolean} generatePreview
|
| + * @return {!Promise<?SDK.RemoteObject>}
|
| + */
|
| + evaluatePromise(code, objectGroup, includeCommandLineAPI, silent, returnByValue, generatePreview) {
|
| + var fulfill;
|
| + var promise = new Promise(x => fulfill = x);
|
| + this.evaluate(
|
| + code, objectGroup, includeCommandLineAPI, silent, returnByValue, generatePreview, callback.bind(this));
|
| + return promise;
|
| +
|
| + /**
|
| + * @param {?Protocol.Runtime.RemoteObject} result
|
| + * @param {!Protocol.Runtime.ExceptionDetails=} exceptionDetails
|
| + * @param {string=} error
|
| + * @this {SDK.DebuggerModel.CallFrame}
|
| + */
|
| + function callback(result, exceptionDetails, error) {
|
| + if (!result || exceptionDetails)
|
| + fulfill(null);
|
| + else
|
| + fulfill(this.debuggerModel._runtimeModel.createRemoteObject(result));
|
| + }
|
| + }
|
| +
|
| + /**
|
| * @param {function(?Protocol.Error=)=} callback
|
| */
|
| restart(callback) {
|
|
|