shim.js 381 B

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