polyfill.js 350 B

1234567891011121314
  1. 'use strict';
  2. var implementation = require('./implementation');
  3. var getProto = require('get-proto');
  4. module.exports = function getPolyfill() {
  5. if (typeof Reflect === 'object' && Reflect && Reflect.getPrototypeOf) {
  6. return Reflect.getPrototypeOf;
  7. }
  8. return getProto
  9. ? function getPrototypeOf(O) { return getProto(O); }
  10. : implementation;
  11. };