aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-runtime/node_modules/core-js/library/modules/_set-to-string-tag.js
blob: 5bd64144f0dd5f8aa6c2b465def0552c6b8f9405 (plain)
1
2
3
4
5
6
7
var def = require('./_object-dp').f;
var has = require('./_has');
var TAG = require('./_wks')('toStringTag');

module.exports = function (it, tag, stat) {
  if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};