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

Unified Diff: src/js/v8natives.js

Issue 1393373005: Take Symbol-keyed properties into account in Object.freeze and friends (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Assert more things Created 5 years, 2 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
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-539875.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index 34c35031b2601dd4c1ef614c877668d307502569..fa1d72a23786a73fed398bfa334802d797972b40 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -1140,7 +1140,7 @@ function ObjectSealJS(obj) {
if (isProxy) {
ProxyFix(obj);
}
- var names = ObjectGetOwnPropertyNames(obj);
+ var names = OwnPropertyKeys(obj);
for (var i = 0; i < names.length; i++) {
var name = names[i];
var desc = GetOwnPropertyJS(obj, name);
@@ -1170,7 +1170,7 @@ function ObjectFreezeJS(obj) {
if (isProxy) {
ProxyFix(obj);
}
- var names = ObjectGetOwnPropertyNames(obj);
+ var names = OwnPropertyKeys(obj);
for (var i = 0; i < names.length; i++) {
var name = names[i];
var desc = GetOwnPropertyJS(obj, name);
@@ -1210,7 +1210,7 @@ function ObjectIsSealed(obj) {
if (%IsExtensible(obj)) {
return false;
}
- var names = ObjectGetOwnPropertyNames(obj);
+ var names = OwnPropertyKeys(obj);
for (var i = 0; i < names.length; i++) {
var name = names[i];
var desc = GetOwnPropertyJS(obj, name);
@@ -1231,7 +1231,7 @@ function ObjectIsFrozen(obj) {
if (%IsExtensible(obj)) {
return false;
}
- var names = ObjectGetOwnPropertyNames(obj);
+ var names = OwnPropertyKeys(obj);
for (var i = 0; i < names.length; i++) {
var name = names[i];
var desc = GetOwnPropertyJS(obj, name);
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-539875.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698