Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
425 bytes
|
Line | |
---|
1 | var defineProperty = require('../internals/object-define-property').f;
|
---|
2 | var has = require('../internals/has');
|
---|
3 | var wellKnownSymbol = require('../internals/well-known-symbol');
|
---|
4 |
|
---|
5 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
---|
6 |
|
---|
7 | module.exports = function (it, TAG, STATIC) {
|
---|
8 | if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
---|
9 | defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
---|
10 | }
|
---|
11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.