Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
563 bytes
|
Line | |
---|
1 | var $ = require('../internals/export');
|
---|
2 | var fails = require('../internals/fails');
|
---|
3 | var getOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;
|
---|
4 |
|
---|
5 | // eslint-disable-next-line es/no-object-getownpropertynames -- required for testing
|
---|
6 | var FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); });
|
---|
7 |
|
---|
8 | // `Object.getOwnPropertyNames` method
|
---|
9 | // https://tc39.es/ecma262/#sec-object.getownpropertynames
|
---|
10 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
---|
11 | getOwnPropertyNames: getOwnPropertyNames
|
---|
12 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.