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

Unified Diff: src/v8natives.js

Issue 11364237: When using an Object as a set in Object.getOwnPropertyNames, null out the proto (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Lint Created 8 years, 1 month 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
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-2410.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 20fc74dc440dcf28dd64ece1de30133611aadf0b..cd7ff78f973a2963d63bfee3eb0413a00911669a 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1025,7 +1025,7 @@ function ObjectGetOwnPropertyNames(obj) {
}
// Property names are expected to be unique strings.
- var propertySet = {};
+ var propertySet = { __proto__: null };
var j = 0;
for (var i = 0; i < propertyNames.length; ++i) {
var name = ToString(propertyNames[i]);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-2410.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698