main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
601 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var getBuiltIn = require('../internals/get-built-in');
|
---|
3 | var defineBuiltInAccessor = require('../internals/define-built-in-accessor');
|
---|
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 |
|
---|
12 | if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
---|
13 | defineBuiltInAccessor(Constructor, SPECIES, {
|
---|
14 | configurable: true,
|
---|
15 | get: function () { return this; }
|
---|
16 | });
|
---|
17 | }
|
---|
18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.