1 | 'use strict';
|
2 | var $ = require('../internals/export');
|
3 | var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');
|
4 | var fails = require('../internals/fails');
|
5 | var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
|
6 | var toObject = require('../internals/to-object');
|
7 |
|
8 |
|
9 |
|
10 | var FORCED = !NATIVE_SYMBOL || fails(function () { getOwnPropertySymbolsModule.f(1); });
|
11 |
|
12 |
|
13 |
|
14 | $({ target: 'Object', stat: true, forced: FORCED }, {
|
15 | getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
16 | var $getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
17 | return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];
|
18 | }
|
19 | });
|