| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index f67068c7077736842d1c47fd73febe912461630f..f3b98d07538057aabf695ba1b8319b4207437da8 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -1796,6 +1796,23 @@ BUILTIN(ObjectFreeze) {
|
| }
|
|
|
|
|
| +// ES section 19.1.2.9 Object.getPrototypeOf ( O )
|
| +BUILTIN(ObjectGetPrototypeOf) {
|
| + HandleScope scope(isolate);
|
| + Handle<Object> object = args.atOrUndefined(isolate, 1);
|
| +
|
| + Handle<JSReceiver> receiver;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate, receiver, Object::ToObject(isolate, object));
|
| +
|
| + Handle<Object> prototype;
|
| + ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| + isolate, prototype, JSReceiver::GetPrototype(isolate, receiver));
|
| +
|
| + return *prototype;
|
| +}
|
| +
|
| +
|
| // ES6 section 19.1.2.6 Object.getOwnPropertyDescriptor ( O, P )
|
| BUILTIN(ObjectGetOwnPropertyDescriptor) {
|
| HandleScope scope(isolate);
|
|
|