blob: c190c7bd06feff3a09ce8d2aab3b78f9024b4b8d [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var GetIntrinsic = require('get-intrinsic');
4
5var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true);
6var $ArrayProto = GetIntrinsic('%Array.prototype%');
7
8module.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);