index.js 532 B

12345678910111213141516171819202122
  1. 'use strict';
  2. var defineProperties = require('define-properties');
  3. var callBind = require('call-bind');
  4. var implementation = require('./implementation');
  5. var getPolyfill = require('./polyfill');
  6. var shim = require('./shim');
  7. var polyfill = callBind.apply(getPolyfill());
  8. // eslint-disable-next-line no-unused-vars
  9. var bound = function assign(target, source1) {
  10. return polyfill(Object, arguments);
  11. };
  12. defineProperties(bound, {
  13. getPolyfill: getPolyfill,
  14. implementation: implementation,
  15. shim: shim
  16. });
  17. module.exports = bound;