Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 765c1e6c996da0421d8068c4046d71c9b5db53ea..7fb317db7e9e2860ab4cd5c6e53da54d4a4c3de5 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1041,6 +1041,7 @@ function ToNameArray(obj, trap, includeSymbols) { |
function ObjectGetOwnPropertyKeys(obj, filter) { |
var nameArrays = new InternalArray(); |
filter |= PROPERTY_ATTRIBUTES_PRIVATE_SYMBOL; |
+ var interceptorInfo = %GetInterceptorInfo(obj); |
// Find all the indexed properties. |
@@ -1051,9 +1052,7 @@ function ObjectGetOwnPropertyKeys(obj, filter) { |
ownElementNames[i] = %_NumberToString(ownElementNames[i]); |
} |
nameArrays.push(ownElementNames); |
- |
// Get names for indexed interceptor properties. |
- var interceptorInfo = %GetInterceptorInfo(obj); |
if ((interceptorInfo & 1) != 0) { |
var indexedInterceptorNames = %GetIndexedInterceptorElementNames(obj); |
if (!IS_UNDEFINED(indexedInterceptorNames)) { |