Chromium Code Reviews| Index: src/proxy.js |
| diff --git a/src/proxy.js b/src/proxy.js |
| index cb9c020e35c60c9b0cdcf15e961ca9a8fdb73789..72b5c225652a71494c24d671bfcc67b5ad86891f 100644 |
| --- a/src/proxy.js |
| +++ b/src/proxy.js |
| @@ -135,3 +135,10 @@ function DerivedSetTrap(receiver, name, val) { |
| function DerivedHasTrap(name) { |
| return !!this.getPropertyDescriptor(name) |
| } |
| + |
| +function DerivedKeysTrap() { |
| + return this.getOwnPropertyNames().filter( |
|
Mads Ager (chromium)
2011/07/12 13:28:19
Is this specified in terms of filter and bind?
Is
rossberg
2011/07/13 10:11:52
Yes, although it is not clear whether that is what
|
| + function(name) { |
| + return this.getOwnPropertyDescriptor('' + name).enumerable |
|
Mads Ager (chromium)
2011/07/12 13:28:19
Do you need the string conversion here? Does getOw
rossberg
2011/07/13 10:11:52
Yes, that's actually a minor inconsistency in the
Mads Ager (chromium)
2011/07/13 10:17:25
Yes, that is on purpose. The point is that TO_STRI
|
| + }.bind(this)); |
| +} |