1 | 'use strict';
|
2 | var defineProperty = require('../internals/object-define-property').f;
|
3 | var hasOwn = require('../internals/has-own-property');
|
4 | var wellKnownSymbol = require('../internals/well-known-symbol');
|
5 |
|
6 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
7 |
|
8 | module.exports = function (target, TAG, STATIC) {
|
9 | if (target && !STATIC) target = target.prototype;
|
10 | if (target && !hasOwn(target, TO_STRING_TAG)) {
|
11 | defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
12 | }
|
13 | };
|