Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 6d6e816f53134a3f03ad590c195648a5881fa5bd..f47c2b6350861d955b9960f77793e8dabbd0d877 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1566,30 +1566,6 @@ |
} |
-// ES6 section 19.1.2.6 Object.getOwnPropertyDescriptor ( O, P ) |
-BUILTIN(ObjectGetOwnPropertyDescriptor) { |
- HandleScope scope(isolate); |
- // 1. Let obj be ? ToObject(O). |
- Handle<Object> object = args.atOrUndefined(isolate, 1); |
- Handle<JSReceiver> receiver; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, receiver, |
- Object::ToObject(isolate, object)); |
- // 2. Let key be ? ToPropertyKey(P). |
- Handle<Object> property = args.atOrUndefined(isolate, 2); |
- Handle<Name> key; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, key, |
- Object::ToName(isolate, property)); |
- // 3. Let desc be ? obj.[[GetOwnProperty]](key). |
- PropertyDescriptor desc; |
- Maybe<bool> found = |
- JSReceiver::GetOwnPropertyDescriptor(isolate, receiver, key, &desc); |
- MAYBE_RETURN(found, isolate->heap()->exception()); |
- // 4. Return FromPropertyDescriptor(desc). |
- if (!found.FromJust()) return isolate->heap()->undefined_value(); |
- return *desc.ToObject(isolate); |
-} |
- |
- |
// ES6 section 19.1.2.8 Object.getOwnPropertySymbols ( O ) |
BUILTIN(ObjectGetOwnPropertySymbols) { |
HandleScope scope(isolate); |