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

Unified Diff: test/mjsunit/harmony/proxies-json.js

Issue 1746713002: Remove [[Enumerate]] leftovers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « test/mjsunit/harmony/proxies-example-membrane.js ('k') | test/mjsunit/harmony/proxies-revocable.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/proxies-json.js
diff --git a/test/mjsunit/harmony/proxies-json.js b/test/mjsunit/harmony/proxies-json.js
index 19a13298df3cc8e01b872813a02ac56cba77b599..6eb0ce90524a814391615087c552295fbc00e207 100644
--- a/test/mjsunit/harmony/proxies-json.js
+++ b/test/mjsunit/harmony/proxies-json.js
@@ -129,9 +129,6 @@ var handler4 = {
get: function(target, name) {
return 0;
},
- enumerate: function(target) {
- return [][Symbol.iterator]();
- },
has: function() {
return true;
},
@@ -152,8 +149,8 @@ var handler5 = {
if (name == 'z') return 97000;
return function(key) { return key.charCodeAt(0) + this.z; };
},
- enumerate: function(target) {
- return ['toJSON', 'z'][Symbol.iterator]();
+ ownKeys: function(target) {
+ return ['toJSON', 'z'];
},
has: function() {
return true;
@@ -173,8 +170,8 @@ var handler6 = {
get: function(target, name) {
return function(key) { return undefined; };
},
- enumerate: function(target) {
- return ['toJSON'][Symbol.iterator]();
+ ownKeys: function(target) {
+ return ['toJSON'];
},
has: function() {
return true;
« no previous file with comments | « test/mjsunit/harmony/proxies-example-membrane.js ('k') | test/mjsunit/harmony/proxies-revocable.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698