| Index: third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| index 233a878c3cfca5c1609c20fab7c8a170ae3f4fe8..bc9ecc70f6c789a3ffaf30aa969da3d985c63549 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js
|
| @@ -43,21 +43,21 @@ InspectorTest.completeDebuggerTest = function()
|
| Promise.prototype.then = function()
|
| {
|
| var result = origThen.apply(this, arguments);
|
| - origThen.call(result, undefined, onUncaughtPromiseReject);
|
| + origThen.call(result, undefined, onUncaughtPromiseReject.bind(null, new Error().stack));
|
| return result;
|
| }
|
|
|
| Promise.prototype.catch = function()
|
| {
|
| var result = origCatch.apply(this, arguments);
|
| - origThen.call(result, undefined, onUncaughtPromiseReject);
|
| + origThen.call(result, undefined, onUncaughtPromiseReject.bind(null, new Error().stack));
|
| return result;
|
| }
|
|
|
| - function onUncaughtPromiseReject(e)
|
| + function onUncaughtPromiseReject(stack, e)
|
| {
|
| var message = (typeof e === "object" && e.stack) || e;
|
| - InspectorTest.addResult("FAIL: Uncaught exception in promise: " + message);
|
| + InspectorTest.addResult("FAIL: Uncaught exception in promise: " + message + " " + stack);
|
| InspectorTest.completeDebuggerTest();
|
| }
|
| })();
|
|
|