source: trip-planner-front/node_modules/core-js/modules/es.object.get-own-property-names.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 563 bytes
Line 
1var $ = require('../internals/export');
2var fails = require('../internals/fails');
3var getOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;
4
5// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing
6var 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.