You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
305 B

4 years ago
  1. 'use strict';
  2. var define = require('define-properties');
  3. var getPolyfill = require('./polyfill');
  4. module.exports = function shimAssign() {
  5. var polyfill = getPolyfill();
  6. define(
  7. Object,
  8. { assign: polyfill },
  9. { assign: function () { return Object.assign !== polyfill; } }
  10. );
  11. return polyfill;
  12. };