2023-12-18 13:12:25 +08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var defineProperties = require('define-properties');
|
2023-12-28 23:41:32 +08:00
|
|
|
var callBind = require('call-bind');
|
2023-12-18 13:12:25 +08:00
|
|
|
|
|
|
|
var implementation = require('./implementation');
|
|
|
|
var getPolyfill = require('./polyfill');
|
|
|
|
var shim = require('./shim');
|
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
var polyfill = callBind.apply(getPolyfill());
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
var bound = function assign(target, source1) {
|
|
|
|
return polyfill(Object, arguments);
|
|
|
|
};
|
2023-12-18 13:12:25 +08:00
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
defineProperties(bound, {
|
2023-12-18 13:12:25 +08:00
|
|
|
getPolyfill: getPolyfill,
|
|
|
|
implementation: implementation,
|
|
|
|
shim: shim
|
|
|
|
});
|
|
|
|
|
2023-12-28 23:41:32 +08:00
|
|
|
module.exports = bound;
|