Index: src/v8natives.js |
diff --git a/src/v8natives.js b/src/v8natives.js |
index 7aea599de4c80711c268c8488e12d3122cf36da1..5ffff2ecacd9f789d475595aa506c3093d20bfe4 100644 |
--- a/src/v8natives.js |
+++ b/src/v8natives.js |
@@ -1171,21 +1171,13 @@ function ObjectDefineProperty(obj, p, attributes) { |
} |
-function GetOwnEnumerablePropertyNames(object) { |
+function GetOwnEnumerablePropertyNames(properties) { |
var names = new InternalArray(); |
- for (var key in object) { |
- if (%HasOwnProperty(object, key)) { |
+ for (var key in properties) { |
+ if (%HasOwnProperty(properties, key)) { |
names.push(key); |
} |
} |
- // FLAG_harmony_symbols may be on, but symbols aren't included by for-in. |
- var symbols = ObjectGetOwnPropertyKeys(object, true); |
- for (var i in symbols) { |
- var symbol = symbols[i]; |
- if (ObjectGetOwnPropertyDescriptor(object, symbol).enumerable) { |
- names.push(symbol); |
- } |
- } |
return names; |
} |