2011-03-03 Ilya Tikhonovsky <loislo@chromium.org>
[WebKit-https.git] / LayoutTests / http / tests / inspector / inspector-test.js
index cf66bd43ed59fc8cfa20407e154e0fcb3966e78a..dd8d19283c6e0586db47898fb7bd08c5bf7f0922 100644 (file)
@@ -90,7 +90,7 @@ InspectorTest.addObject = function(object, nondeterministicProps, prefix, firstL
     firstLinePrefix = firstLinePrefix || prefix;
     InspectorTest.addResult(firstLinePrefix + "{");
     for (var prop in object) {
     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];
             continue;
         var prefixWithName = prefix + "    " + prop + " : ";
         var propValue = object[prop];