Index: src/proxy.js |
diff --git a/src/proxy.js b/src/proxy.js |
index 285d33c7fa1a208607d13698a48250b35129a76c..d402449145174afc9a82695bc03b0d11a6cb1e8c 100644 |
--- a/src/proxy.js |
+++ b/src/proxy.js |
@@ -163,6 +163,7 @@ function DerivedKeysTrap() { |
var enumerableNames = [] |
for (var i = 0, count = 0; i < names.length; ++i) { |
var name = names[i] |
+ if (IS_SYMBOL(name)) continue |
var desc = this.getOwnPropertyDescriptor(TO_STRING_INLINE(name)) |
if (!IS_UNDEFINED(desc) && desc.enumerable) { |
enumerableNames[count++] = names[i] |
@@ -176,6 +177,7 @@ function DerivedEnumerateTrap() { |
var enumerableNames = [] |
for (var i = 0, count = 0; i < names.length; ++i) { |
var name = names[i] |
+ if (IS_SYMBOL(name)) continue |
var desc = this.getPropertyDescriptor(TO_STRING_INLINE(name)) |
if (!IS_UNDEFINED(desc) && desc.enumerable) { |
enumerableNames[count++] = names[i] |
@@ -189,6 +191,6 @@ function ProxyEnumerate(proxy) { |
if (IS_UNDEFINED(handler.enumerate)) { |
return %Apply(DerivedEnumerateTrap, handler, [], 0, 0) |
} else { |
- return ToNameArray(handler.enumerate(), "enumerate") |
+ return ToNameArray(handler.enumerate(), "enumerate", false) |
} |
} |