1 | var $ = require('../internals/export');
|
2 | var fails = require('../internals/fails');
|
3 | var nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;
|
4 |
|
5 | var FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); });
|
6 |
|
7 | // `Object.getOwnPropertyNames` method
|
8 | // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
9 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
10 | getOwnPropertyNames: nativeGetOwnPropertyNames
|
11 | });
|