You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
521 B
12 lines
521 B
var $ = require('../internals/export'); |
|
var anObject = require('../internals/an-object'); |
|
var objectGetPrototypeOf = require('../internals/object-get-prototype-of'); |
|
var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter'); |
|
|
|
// `Reflect.getPrototypeOf` method |
|
// https://tc39.es/ecma262/#sec-reflect.getprototypeof |
|
$({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, { |
|
getPrototypeOf: function getPrototypeOf(target) { |
|
return objectGetPrototypeOf(anObject(target)); |
|
} |
|
});
|
|
|