Sha256: 34fcce31776b5004a7b4f7fe7c686ab021d7af7ffd2e946b7bee7ed7df7048a9
Contents?: true
Size: 565 Bytes
Versions: 25
Compression:
Stored size: 565 Bytes
Contents
var hasOwnProperty = Object.hasOwnProperty var originalGetOwnPropertyNames = Object.getOwnPropertyNames function getOwnPropertyNames (obj) { var result = originalGetOwnPropertyNames.call(this, obj) if (typeof obj !== 'function' || hasOwnProperty.call(obj, 'callee')) { return result } return result.filter(function filterCallee (name) { return name !== 'callee' && name !== 'arguments' && name !== 'caller'; }) }; Object.defineProperty(Object, 'getOwnPropertyNames', { value: getOwnPropertyNames, configurable: true, writable: true })
Version data entries
25 entries across 25 versions & 2 rubygems