Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
638 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var getBuiltIn = require('../internals/get-built-in');
|
---|
3 | var definePropertyModule = require('../internals/object-define-property');
|
---|
4 | var wellKnownSymbol = require('../internals/well-known-symbol');
|
---|
5 | var DESCRIPTORS = require('../internals/descriptors');
|
---|
6 |
|
---|
7 | var SPECIES = wellKnownSymbol('species');
|
---|
8 |
|
---|
9 | module.exports = function (CONSTRUCTOR_NAME) {
|
---|
10 | var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
---|
11 | var defineProperty = definePropertyModule.f;
|
---|
12 |
|
---|
13 | if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
---|
14 | defineProperty(Constructor, SPECIES, {
|
---|
15 | configurable: true,
|
---|
16 | get: function () { return this; }
|
---|
17 | });
|
---|
18 | }
|
---|
19 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.