UNPKG

reflect.getprototypeof

Version:

An ES2015 mostly-spec-compliant `Reflect.getPrototypeOf` sham/polyfill/replacement that works in as many engines as possible

19 lines (13 loc) 421 B
'use strict'; var callBind = require('call-bind'); var define = require('define-properties'); var implementation = require('./implementation'); var getPolyfill = require('./polyfill'); var shim = require('./shim'); var bound = callBind(getPolyfill(), typeof Reflect === 'object' ? Reflect : Object); define(bound, { getPolyfill: getPolyfill, implementation: implementation, shim: shim }); module.exports = bound;