Index: src/proxy.js |
diff --git a/src/proxy.js b/src/proxy.js |
index 528c47d80dcda3a3fbab317ce0cc34ed05b83905..de9be50ddca045cd1e4d2d60236ab7211b33ba9f 100644 |
--- a/src/proxy.js |
+++ b/src/proxy.js |
@@ -192,8 +192,12 @@ function DerivedEnumerateTrap() { |
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] |
+ if (!IS_UNDEFINED(desc)) { |
+ if (!desc.configurable) { |
+ throw MakeTypeError("proxy_prop_not_configurable", |
+ [this, "getPropertyDescriptor", name]) |
+ } |
+ if (desc.enumerable) enumerableNames[count++] = names[i] |
Yang
2013/07/19 12:05:43
We use semicolons pretty sparingly in this file. I
rossberg
2013/07/19 14:05:02
Aesthetics? :)
|
} |
} |
return enumerableNames |