Index: LayoutTests/inspector-protocol/json-parse.html |
diff --git a/LayoutTests/inspector-protocol/json-parse.html b/LayoutTests/inspector-protocol/json-parse.html |
index 33127ae9408d91452ccefc76b4fec6ec1df3f474..dc40b6d6e0f2798afd82cec77572c5a10edb4891 100644 |
--- a/LayoutTests/inspector-protocol/json-parse.html |
+++ b/LayoutTests/inspector-protocol/json-parse.html |
@@ -11,7 +11,10 @@ function test() |
function step2(msg) |
{ |
yurys
2015/08/12 19:05:42
Alternatively we could always dump JSON.stringify(
dgozman
2015/08/12 21:19:26
Used InspectorTest.logObject.
|
- InspectorTest.log(msg.result.result.value); |
+ if (msg.result && msg.result.result) |
+ InspectorTest.log(msg.result.result.value); |
+ else |
+ InspectorTest.log("Error: " + msg.error); |
InspectorTest.completeTest(); |
} |
} |