2020-08-26 01:57:08 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var defineProperties = require('define-properties');
|
2021-02-26 04:58:33 +01:00
|
|
|
var callBind = require('call-bind');
|
2020-08-26 01:57:08 +02:00
|
|
|
|
|
|
|
var implementation = require('./implementation');
|
|
|
|
var getPolyfill = require('./polyfill');
|
|
|
|
var shim = require('./shim');
|
|
|
|
|
2021-02-26 04:58:33 +01:00
|
|
|
var polyfill = callBind.apply(getPolyfill());
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
var bound = function assign(target, source1) {
|
|
|
|
return polyfill(Object, arguments);
|
|
|
|
};
|
2020-08-26 01:57:08 +02:00
|
|
|
|
2021-02-26 04:58:33 +01:00
|
|
|
defineProperties(bound, {
|
2020-08-26 01:57:08 +02:00
|
|
|
getPolyfill: getPolyfill,
|
|
|
|
implementation: implementation,
|
|
|
|
shim: shim
|
|
|
|
});
|
|
|
|
|
2021-02-26 04:58:33 +01:00
|
|
|
module.exports = bound;
|