Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html |
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html |
index 15d23ff089afbc8e939ec2b986e3800213c35aca..c8f56c526e4d6dd34e1732dc3d2b40e8d7a2b066 100644 |
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html |
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html |
@@ -7,8 +7,11 @@ var test = function() |
{ |
function printExceptionDetails(exceptionDetails) |
{ |
- InspectorTest.addResult("exceptionDetails:") |
- InspectorTest.addResult(" " + exceptionDetails.text); |
+ InspectorTest.addResult("exceptionDetails:"); |
+ var text = exceptionDetails.text; |
+ if (exceptionDetails.exception) |
+ text += " " + exceptionDetails.exception.description; |
+ InspectorTest.addResult(" " + text); |
InspectorTest.addResult(" line: " + exceptionDetails.lineNumber + ", column: " + exceptionDetails.columnNumber); |
var stack = exceptionDetails.stackTrace ? exceptionDetails.stackTrace.callFrames : null; |