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

Version Path
decidim-dev-0.7.2 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.7.1 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.7.0 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.8 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.8 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.7 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.7 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.6 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.6 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.5 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.5 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.4 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.4 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.3 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.3 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.2 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.2 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.1 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-0.6.1 decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js
decidim-dev-0.6.0 lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-getOwnPropertyNames.js