Sha256: 567ab0ff1323010cd375aee2c5aefbaa1a0ff9eefc700231a1c6d44a52afd315

Contents?: true

Size: 700 Bytes

Versions: 3

Compression:

Stored size: 700 Bytes

Contents

var defineProperty = require('../internals/object-define-property').f;
var hide = require('../internals/hide');
var has = require('../internals/has');
var toString = require('../internals/object-to-string');
var wellKnownSymbol = require('../internals/well-known-symbol');

var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var METHOD_REQUIRED = toString !== ({}).toString;

module.exports = function (it, TAG, STATIC, SET_METHOD) {
  if (it) {
    var target = STATIC ? it : it.prototype;
    if (!has(target, TO_STRING_TAG)) {
      defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });
    }
    if (SET_METHOD && METHOD_REQUIRED) hide(target, 'toString', toString);
  }
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
condenser-0.0.8 lib/condenser/processors/node_modules/core-js-pure/internals/set-to-string-tag.js
condenser-0.0.7 lib/condenser/processors/node_modules/core-js-pure/internals/set-to-string-tag.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js-pure/internals/set-to-string-tag.js