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.

15 lines
384 B

4 years ago
  1. 'use strict';
  2. var GetIntrinsic = require('../GetIntrinsic');
  3. var originalGetProto = GetIntrinsic('%Object.getPrototypeOf%', true);
  4. var $ArrayProto = GetIntrinsic('%Array.prototype%');
  5. module.exports = originalGetProto || (
  6. // eslint-disable-next-line no-proto
  7. [].__proto__ === $ArrayProto
  8. ? function (O) {
  9. return O.__proto__; // eslint-disable-line no-proto
  10. }
  11. : null
  12. );