Sha256: dd5459f8477bfb8cfc6862598abae5d3a33ca1fe5a58441362ae84534da95f21
Contents?: true
Size: 564 Bytes
Versions: 10
Compression:
Stored size: 564 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
10 entries across 10 versions & 2 rubygems