Fix
Object.getOwnPropertyNamesbehavior for functions in PhantomJS 1.9
$ npm install --save phantom-ownpropertynames
Detect whether Object.getOwnPropertyNames is broken and shim if it is:
require('phantom-ownpropertynames/implement')Or just get the patched function directly:
var getOwnPropertyNames = require('phantom-ownpropertynames')
getOwnPropertyNames({foo: 'bar'})
// => ['foo']Required
Type: object
MIT © Ben Drucker