Index: src/js/proxy.js |
diff --git a/src/js/proxy.js b/src/js/proxy.js |
index 11f600e7ec1023bd9eb479d4a9f7b59dfe50a65c..b859415f0672238878487ea3ab7b9cb217c6fa34 100644 |
--- a/src/js/proxy.js |
+++ b/src/js/proxy.js |
@@ -35,7 +35,7 @@ function ProxyEnumerate(trap, handler, target) { |
// 7. Let trapResult be ? Call(trap, handler, «target»). |
var trap_result = %_Call(trap, handler, target); |
// 8. If Type(trapResult) is not Object, throw a TypeError exception. |
- if (!IS_SPEC_OBJECT(trap_result)) { |
+ if (!IS_RECEIVER(trap_result)) { |
throw MakeTypeError(kProxyEnumerateNonObject); |
} |
// 9. Return trapResult. |