setup-node/node_modules/object.getownpropertydescriptors/shim.js
Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00

15 lines
381 B
JavaScript

'use strict';
var getPolyfill = require('./polyfill');
var define = require('define-properties');
module.exports = function shimGetOwnPropertyDescriptors() {
var polyfill = getPolyfill();
define(
Object,
{ getOwnPropertyDescriptors: polyfill },
{ getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
);
return polyfill;
};