aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/_set-to-string-tag.js
blob: ffbdddab82dcc90915058bd203de256775ed06d6 (plain)
1
2
3
4
5
6
7
var def = require('./_object-dp').f
  , has = require('./_has')
  , 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});
};