install-nix-action/node_modules/object.getownpropertydescriptors/shim.js
Domen Kožar 70742d22d9
v6
2019-11-19 17:50:30 +01:00

14 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;
};