Index: LayoutTests/fast/js/script-tests/global-constructors.js |
diff --git a/LayoutTests/fast/js/script-tests/global-constructors.js b/LayoutTests/fast/js/script-tests/global-constructors.js |
index ae72ca20b369e4b1e35970a8e21082dc61aa3494..cb105df111feed55aea13fa632821f0ab0a5bf25 100644 |
--- a/LayoutTests/fast/js/script-tests/global-constructors.js |
+++ b/LayoutTests/fast/js/script-tests/global-constructors.js |
@@ -2,7 +2,9 @@ description("This test documents our set of global constructors we expose on the |
var constructorNames = []; |
-for (var name in window) { |
+var windowProperties = Object.getOwnPropertyNames(window); |
+for (var i = 0; i < windowProperties.length; i++) { |
+ var name = windowProperties[i]; |
var value = window[name]; |
var re = new RegExp("Constructor]$"); |
var isConstructor = re.exec(value); |