Sha256: 180d99e11a587e23796a95e019b993c7b4865f2afa184d1b1874232c6e955750

Contents?: true

Size: 1.01 KB

Versions: 12

Compression:

Stored size: 1.01 KB

Contents

var global = require('./_global');
var hide = require('./_hide');
var has = require('./_has');
var SRC = require('./_uid')('src');
var TO_STRING = 'toString';
var $toString = Function[TO_STRING];
var TPL = ('' + $toString).split(TO_STRING);

require('./_core').inspectSource = function (it) {
  return $toString.call(it);
};

(module.exports = function (O, key, val, safe) {
  var isFunction = typeof val == 'function';
  if (isFunction) has(val, 'name') || hide(val, 'name', key);
  if (O[key] === val) return;
  if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
  if (O === global) {
    O[key] = val;
  } else if (!safe) {
    delete O[key];
    hide(O, key, val);
  } else if (O[key]) {
    O[key] = val;
  } else {
    hide(O, key, val);
  }
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, TO_STRING, function toString() {
  return typeof this == 'function' && this[SRC] || $toString.call(this);
});

Version data entries

12 entries across 12 versions & 6 rubygems

Version Path
optimacms-0.4.3 spec/dummy/node_modules/core-js/modules/_redefine.js
optimacms-0.4.2 spec/dummy/node_modules/core-js/modules/_redefine.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/core-js/modules/_redefine.js
lux_assets-0.2.11 ./node_modules/core-js/modules/_redefine.js
lux_assets-0.2.9 ./node_modules/core-js/modules/_redefine.js
lux_assets-0.2.4 ./node_modules/core-js/modules/_redefine.js
lux_assets-0.2.2 ./node_modules/core-js/modules/_redefine.js
lux_assets-0.2.1 ./node_modules/core-js/modules/_redefine.js
locomotivecms-3.4.0 app/javascript/node_modules/core-js/modules/_redefine.js
cortex-0.1.3 spec/dummy/node_modules/core-js/modules/_redefine.js
condenser-0.0.4 lib/condenser/processors/node_modules/core-js/modules/_redefine.js
dragonfly_puppeteer-0.1.0 node_modules/core-js/modules/_redefine.js