aswi2020vldc-gitlab/templetes/node_modules/es-abstract/helpers/getProto.js @ 56f6c6df
1 |
'use strict'; |
---|---|
2 |
|
3 |
var GetIntrinsic = require('../GetIntrinsic'); |
4 |
|
5 |
var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true); |
6 |
var $ArrayProto = GetIntrinsic('%Array.prototype%'); |
7 |
|
8 |
module.exports = originalGetProto || ( |
9 |
// eslint-disable-next-line no-proto
|
10 |
[].__proto__ === $ArrayProto |
11 |
? function (O) { |
12 |
return O.__proto__; // eslint-disable-line no-proto |
13 |
}
|
14 |
: null |
15 |
);
|