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 @@ ...@@ -45,7 +45,6 @@
V(dot_string, ".") \ V(dot_string, ".") \
V(entries_string, "entries") \ V(entries_string, "entries") \
V(enumerable_string, "enumerable") \ V(enumerable_string, "enumerable") \
V(enumerate_string, "enumerate") \
V(Error_string, "Error") \ V(Error_string, "Error") \
V(eval_string, "eval") \ V(eval_string, "eval") \
V(false_string, "false") \ V(false_string, "false") \
......
...@@ -208,9 +208,6 @@ class CallSite { ...@@ -208,9 +208,6 @@ class CallSite {
T(ProxyDeletePropertyNonConfigurable, \ T(ProxyDeletePropertyNonConfigurable, \
"'deleteProperty' on proxy: trap returned truish for property '%' which " \ "'deleteProperty' on proxy: trap returned truish for property '%' which " \
"is non-configurable in the proxy target") \ "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, \ T(ProxyGetNonConfigurableData, \
"'get' on proxy: property '%' is a read-only and " \ "'get' on proxy: property '%' is a read-only and " \
"non-configurable data property on the proxy target but the proxy " \ "non-configurable data property on the proxy target but the proxy " \
......
...@@ -75,11 +75,6 @@ function createHandler(obj) { ...@@ -75,11 +75,6 @@ function createHandler(obj) {
obj[name] = val; // bad behavior when set fails in sloppy mode obj[name] = val; // bad behavior when set fails in sloppy mode
return true; return true;
}, },
enumerate: function() {
var result = [];
for (var name in obj) { result.push(name); };
return result;
},
keys: function() { return Object.keys(obj); } keys: function() { return Object.keys(obj); }
}; };
} }
......
...@@ -129,9 +129,6 @@ var handler4 = { ...@@ -129,9 +129,6 @@ var handler4 = {
get: function(target, name) { get: function(target, name) {
return 0; return 0;
}, },
enumerate: function(target) {
return [][Symbol.iterator]();
},
has: function() { has: function() {
return true; return true;
}, },
...@@ -152,8 +149,8 @@ var handler5 = { ...@@ -152,8 +149,8 @@ var handler5 = {
if (name == 'z') return 97000; if (name == 'z') return 97000;
return function(key) { return key.charCodeAt(0) + this.z; }; return function(key) { return key.charCodeAt(0) + this.z; };
}, },
enumerate: function(target) { ownKeys: function(target) {
return ['toJSON', 'z'][Symbol.iterator](); return ['toJSON', 'z'];
}, },
has: function() { has: function() {
return true; return true;
...@@ -173,8 +170,8 @@ var handler6 = { ...@@ -173,8 +170,8 @@ var handler6 = {
get: function(target, name) { get: function(target, name) {
return function(key) { return undefined; }; return function(key) { return undefined; };
}, },
enumerate: function(target) { ownKeys: function(target) {
return ['toJSON'][Symbol.iterator](); return ['toJSON'];
}, },
has: function() { has: function() {
return true; return true;
......
...@@ -10,7 +10,6 @@ traps = [ ...@@ -10,7 +10,6 @@ traps = [
"getOwnPropertyDescriptor", "has", "get", "set", "deleteProperty", "getOwnPropertyDescriptor", "has", "get", "set", "deleteProperty",
"defineProperty", "ownKeys", "apply", "construct" "defineProperty", "ownKeys", "apply", "construct"
]; ];
// TODO(neis): Fix enumerate.
var {proxy, revoke} = Proxy.revocable({}, {}); var {proxy, revoke} = Proxy.revocable({}, {});
assertEquals(0, revoke.length); 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