Sha256: b7b6363942c0258bb01b8b04d34a913bc06a27f7dcd7b02d6dc7d97d007cd5d2
Contents?: true
Size: 752 Bytes
Versions: 31
Compression:
Stored size: 752 Bytes
Contents
/* */ var global = require('./$.global'), hide = require('./$.hide'), SRC = require('./$.uid')('src'), TO_STRING = 'toString', $toString = Function[TO_STRING], TPL = ('' + $toString).split(TO_STRING); require('./$.core').inspectSource = function(it) { return $toString.call(it); }; (module.exports = function(O, key, val, safe) { if (typeof val == 'function') { hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); if (!('name' in val)) val.name = key; } if (O === global) { O[key] = val; } else { if (!safe) delete O[key]; hide(O, key, val); } })(Function.prototype, TO_STRING, function toString() { return typeof this == 'function' && this[SRC] || $toString.call(this); });
Version data entries
31 entries across 31 versions & 1 rubygems