setup-php/node_modules/object.getownpropertydescriptors/shim.js
Shivam Mathur 8f9786b73f init
2019-09-06 05:17:43 +05:30

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