Commit a40d5d54 authored by neis's avatar neis Committed by Commit bot

Remove [[Enumerate]] leftovers.

R=littledan@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1746713002

Cr-Commit-Position: refs/heads/master@{#34366}
parent f1d49ca3
......@@ -45,7 +45,6 @@
V(dot_string, ".") \
V(entries_string, "entries") \
V(enumerable_string, "enumerable") \
V(enumerate_string, "enumerate") \
V(Error_string, "Error") \
V(eval_string, "eval") \
V(false_string, "false") \
......
......@@ -208,9 +208,6 @@ class CallSite {
T(ProxyDeletePropertyNonConfigurable, \
"'deleteProperty' on proxy: trap returned truish for property '%' which " \
"is non-configurable in the proxy target") \
T(ProxyEnumerateNonObject, "'enumerate' on proxy: trap returned non-object") \
T(ProxyEnumerateNonString, \
"'enumerate' on proxy: trap result includes non-string") \
T(ProxyGetNonConfigurableData, \
"'get' on proxy: property '%' is a read-only and " \
"non-configurable data property on the proxy target but the proxy " \
......
......@@ -75,11 +75,6 @@ function createHandler(obj) {
obj[name] = val; // bad behavior when set fails in sloppy mode
return true;
},
enumerate: function() {
var result = [];
for (var name in obj) { result.push(name); };
return result;
},
keys: function() { return Object.keys(obj); }
};
}
......
......@@ -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;
......
......@@ -10,7 +10,6 @@ traps = [
"getOwnPropertyDescriptor", "has", "get", "set", "deleteProperty",
"defineProperty", "ownKeys", "apply", "construct"
];
// TODO(neis): Fix enumerate.
var {proxy, revoke} = Proxy.revocable({}, {});
assertEquals(0, revoke.length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment