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

Version Path
decidim-dev-0.4.4 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.4.4 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.4.1 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.4.3 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.4.3 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.4.2 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.4.2 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.4.1 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.4.0 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.4.0 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js