Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: LayoutTests/fast/dom/script-tests/constructed-objects-prototypes.js

Issue 14447006: Global constructors should be configurable and not enumerable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean rebase on master Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698