Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9349145
es.object.get-own-property-symbols.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
890 B
Subscribers
None
es.object.get-own-property-symbols.js
View Options
var
$
=
require
(
'../internals/export'
);
var
NATIVE_SYMBOL
=
require
(
'../internals/symbol-constructor-detection'
);
var
fails
=
require
(
'../internals/fails'
);
var
getOwnPropertySymbolsModule
=
require
(
'../internals/object-get-own-property-symbols'
);
var
toObject
=
require
(
'../internals/to-object'
);
// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
var
FORCED
=
!
NATIVE_SYMBOL
||
fails
(
function
()
{
getOwnPropertySymbolsModule
.
f
(
1
);
});
// `Object.getOwnPropertySymbols` method
// https://tc39.es/ecma262/#sec-object.getownpropertysymbols
$
({
target
:
'Object'
,
stat
:
true
,
forced
:
FORCED
},
{
getOwnPropertySymbols
:
function
getOwnPropertySymbols
(
it
)
{
var
$getOwnPropertySymbols
=
getOwnPropertySymbolsModule
.
f
;
return
$getOwnPropertySymbols
?
$getOwnPropertySymbols
(
toObject
(
it
))
:
[];
}
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 7:07 PM (6 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3363410
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment