X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=blobdiff_plain;f=LayoutTests%2Fhttp%2Ftests%2Finspector%2Finspector-test.js;h=dd8d19283c6e0586db47898fb7bd08c5bf7f0922;hp=cf66bd43ed59fc8cfa20407e154e0fcb3966e78a;hb=bf867022b7fbd901dbfec23ad4faf4838f6e07ae;hpb=41eb57bf60f7fdeeb27b9995002d07f0c7d5a18f diff --git a/LayoutTests/http/tests/inspector/inspector-test.js b/LayoutTests/http/tests/inspector/inspector-test.js index cf66bd43ed59..dd8d19283c6e 100644 --- a/LayoutTests/http/tests/inspector/inspector-test.js +++ b/LayoutTests/http/tests/inspector/inspector-test.js @@ -90,7 +90,7 @@ InspectorTest.addObject = function(object, nondeterministicProps, prefix, firstL firstLinePrefix = firstLinePrefix || prefix; InspectorTest.addResult(firstLinePrefix + "{"); for (var prop in object) { - if (!object.hasOwnProperty(prop)) + if (typeof object.hasOwnProperty === "function" && !object.hasOwnProperty(prop)) continue; var prefixWithName = prefix + " " + prop + " : "; var propValue = object[prop];