main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
311 bytes
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | var GetIntrinsic = require('get-intrinsic');
|
---|
| 4 |
|
---|
| 5 | var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true);
|
---|
| 6 |
|
---|
| 7 | var hasProto = require('has-proto')();
|
---|
| 8 |
|
---|
| 9 | module.exports = originalGetProto || (
|
---|
| 10 | hasProto
|
---|
| 11 | ? function (O) {
|
---|
| 12 | return O.__proto__; // eslint-disable-line no-proto
|
---|
| 13 | }
|
---|
| 14 | : null
|
---|
| 15 | );
|
---|
Note:
See
TracBrowser
for help on using the repository browser.