Remove [[Enumerate]] leftovers.

R=littledan@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#34366}
This commit is contained in:
neis 2016-02-29 09:01:49 -08:00 committed by Commit bot
parent f1d49ca3f2
commit a40d5d544d
5 changed files with 4 additions and 17 deletions

View File

@ -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") \

View File

@ -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 " \

View File

@ -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); }
};
}

View File

@ -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;

View File

@ -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);