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