mirror of
https://github.com/rhinstaller/node-cache.git
synced 2026-11-03 21:49:47 -09:00
14 lines
350 B
JavaScript
14 lines
350 B
JavaScript
'use strict';
|
|
|
|
var implementation = require('./implementation');
|
|
|
|
var getProto = require('get-proto');
|
|
|
|
module.exports = function getPolyfill() {
|
|
if (typeof Reflect === 'object' && Reflect && Reflect.getPrototypeOf) {
|
|
return Reflect.getPrototypeOf;
|
|
}
|
|
return getProto
|
|
? function getPrototypeOf(O) { return getProto(O); }
|
|
: implementation;
|
|
};
|