Version 1
[yaffs-website] / node_modules / core-js / library / modules / _set-to-string-tag.js
1 var def = require('./_object-dp').f
2   , has = require('./_has')
3   , TAG = require('./_wks')('toStringTag');
4
5 module.exports = function(it, tag, stat){
6   if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
7 };