Index: src/js/v8natives.js |
diff --git a/src/js/v8natives.js b/src/js/v8natives.js |
index 26447dac5de4d8169c891b105c8897b49aa78af9..c14f9f2f1fcbcb9c746d82cc74291ac2a1b399d4 100644 |
--- a/src/js/v8natives.js |
+++ b/src/js/v8natives.js |
@@ -778,13 +778,6 @@ function ObjectGetOwnPropertyDescriptor(obj, p) { |
} |
-// ES5 section 15.2.3.4. |
-function ObjectGetOwnPropertyNames(obj) { |
- obj = TO_OBJECT(obj); |
- return %GetOwnPropertyKeys(obj, PROPERTY_FILTER_SKIP_SYMBOLS); |
-} |
- |
- |
// ES5 section 15.2.3.6. |
function ObjectDefineProperty(obj, p, attributes) { |
// The new pure-C++ implementation doesn't support O.o. |
@@ -802,11 +795,6 @@ function ObjectDefineProperty(obj, p, attributes) { |
} |
-function GetOwnEnumerablePropertyNames(object) { |
- return %GetOwnPropertyKeys(object, PROPERTY_FILTER_ONLY_ENUMERABLE); |
-} |
- |
- |
// ES5 section 15.2.3.7. |
function ObjectDefineProperties(obj, properties) { |
// The new pure-C++ implementation doesn't support O.o. |
@@ -816,7 +804,7 @@ function ObjectDefineProperties(obj, properties) { |
throw MakeTypeError(kCalledOnNonObject, "Object.defineProperties"); |
} |
var props = TO_OBJECT(properties); |
- var names = GetOwnEnumerablePropertyNames(props); |
+ var names = %GetOwnPropertyKeys(props, PROPERTY_FILTER_ONLY_ENUMERABLE); |
var descriptors = new InternalArray(); |
for (var i = 0; i < names.length; i++) { |
descriptors.push(ToPropertyDescriptor(props[names[i]])); |
@@ -890,7 +878,6 @@ utils.InstallFunctions(GlobalObject, DONT_ENUM, [ |
"getPrototypeOf", ObjectGetPrototypeOf, |
"setPrototypeOf", ObjectSetPrototypeOf, |
"getOwnPropertyDescriptor", ObjectGetOwnPropertyDescriptor, |
- "getOwnPropertyNames", ObjectGetOwnPropertyNames, |
// getOwnPropertySymbols is added in symbol.js. |
"is", SameValue, // ECMA-262, Edition 6, section 19.1.2.10 |
// deliverChangeRecords, getNotifier, observe and unobserve are added |