Index: LayoutTests/fast/dom/script-tests/constructed-objects-prototypes.js |
diff --git a/LayoutTests/fast/dom/script-tests/constructed-objects-prototypes.js b/LayoutTests/fast/dom/script-tests/constructed-objects-prototypes.js |
index 034b9252a06020778161cb7f05c99dc7ce010f52..4c83d40d210e8b8dd4c57ce905b22743cbdef977 100644 |
--- a/LayoutTests/fast/dom/script-tests/constructed-objects-prototypes.js |
+++ b/LayoutTests/fast/dom/script-tests/constructed-objects-prototypes.js |
@@ -21,8 +21,9 @@ function classNameForObject(object) |
function constructorPropertiesOnWindow(globalObject) |
{ |
var constructorNames = []; |
- for (var property in globalObject) { |
- var value = inner[property]; |
+ var propertyNames = Object.getOwnPropertyNames(window); |
+ for (var i = 0; i < propertyNames.length; i++) { |
+ var value = inner[propertyNames[i]]; |
if (value == null) |
continue; |
var type = classNameForObject(value); |