summaryrefslogtreecommitdiff
path: root/deps/v8/src/proxy.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/proxy.js')
-rw-r--r--deps/v8/src/proxy.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/v8/src/proxy.js b/deps/v8/src/proxy.js
index cb9c020e35..27524bd918 100644
--- a/deps/v8/src/proxy.js
+++ b/deps/v8/src/proxy.js
@@ -135,3 +135,15 @@ function DerivedSetTrap(receiver, name, val) {
function DerivedHasTrap(name) {
return !!this.getPropertyDescriptor(name)
}
+
+function DerivedKeysTrap() {
+ var names = this.getOwnPropertyNames()
+ var enumerableNames = []
+ for (var i = 0, count = 0; i < names.length; ++i) {
+ var name = names[i]
+ if (this.getOwnPropertyDescriptor(TO_STRING_INLINE(name)).enumerable) {
+ enumerableNames[count++] = names[i]
+ }
+ }
+ return enumerableNames
+}