| Index: Source/devtools/front_end/Runtime.js
|
| diff --git a/Source/devtools/front_end/Runtime.js b/Source/devtools/front_end/Runtime.js
|
| index ff5c54f9298e5e7d4d77e1f3d39eb44739724fd8..ab97e926029d80bb5088cd207a49a62c82a40528 100644
|
| --- a/Source/devtools/front_end/Runtime.js
|
| +++ b/Source/devtools/front_end/Runtime.js
|
| @@ -987,14 +987,27 @@ Promise.prototype.thenOrCatch = function(callback)
|
| */
|
| function reject(e)
|
| {
|
| - console.error(e);
|
| + if (e instanceof Error)
|
| + console.error(e.stack);
|
| + else
|
| + console.error(e);
|
| callback();
|
| }
|
| }
|
|
|
| Promise.prototype.done = function()
|
| {
|
| - this.catch(console.error.bind(console));
|
| + /**
|
| + * @param {*} e
|
| + */
|
| + function reportError(e)
|
| + {
|
| + if (e instanceof Error)
|
| + console.error(e.stack);
|
| + else
|
| + console.error(e);
|
| + }
|
| + this.catch(reportError);
|
| }
|
|
|
| /**
|
|
|