Sha256: 5a27ba5f150e6b17031d6658f68f4f1cd46177cea7acaca38c495bd5f11e4a1b
Contents?: true
Size: 638 Bytes
Versions: 36
Compression:
Stored size: 638 Bytes
Contents
'use strict'; var getBuiltIn = require('../internals/get-built-in'); var definePropertyModule = require('../internals/object-define-property'); var wellKnownSymbol = require('../internals/well-known-symbol'); var DESCRIPTORS = require('../internals/descriptors'); var SPECIES = wellKnownSymbol('species'); module.exports = function (CONSTRUCTOR_NAME) { var Constructor = getBuiltIn(CONSTRUCTOR_NAME); var defineProperty = definePropertyModule.f; if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) { defineProperty(Constructor, SPECIES, { configurable: true, get: function () { return this; } }); } };
Version data entries
36 entries across 35 versions & 9 rubygems