Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
521 bytes
|
Line | |
---|
1 | var $ = require('../internals/export');
|
---|
2 | var anObject = require('../internals/an-object');
|
---|
3 | var objectGetPrototypeOf = require('../internals/object-get-prototype-of');
|
---|
4 | var CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');
|
---|
5 |
|
---|
6 | // `Reflect.getPrototypeOf` method
|
---|
7 | // https://tc39.es/ecma262/#sec-reflect.getprototypeof
|
---|
8 | $({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, {
|
---|
9 | getPrototypeOf: function getPrototypeOf(target) {
|
---|
10 | return objectGetPrototypeOf(anObject(target));
|
---|
11 | }
|
---|
12 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.