Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9338552
es.object.get-own-property-descriptor.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
771 B
Subscribers
None
es.object.get-own-property-descriptor.js
View Options
var
$
=
require
(
'../internals/export'
);
var
fails
=
require
(
'../internals/fails'
);
var
toIndexedObject
=
require
(
'../internals/to-indexed-object'
);
var
nativeGetOwnPropertyDescriptor
=
require
(
'../internals/object-get-own-property-descriptor'
).
f
;
var
DESCRIPTORS
=
require
(
'../internals/descriptors'
);
var
FAILS_ON_PRIMITIVES
=
fails
(
function
()
{
nativeGetOwnPropertyDescriptor
(
1
);
});
var
FORCED
=
!
DESCRIPTORS
||
FAILS_ON_PRIMITIVES
;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
$
({
target
:
'Object'
,
stat
:
true
,
forced
:
FORCED
,
sham
:
!
DESCRIPTORS
},
{
getOwnPropertyDescriptor
:
function
getOwnPropertyDescriptor
(
it
,
key
)
{
return
nativeGetOwnPropertyDescriptor
(
toIndexedObject
(
it
),
key
);
}
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 8:55 AM (7 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3368405
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment