Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9349701
es.object.define-getter.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
737 B
Subscribers
None
es.object.define-getter.js
View Options
'use strict'
;
var
$
=
require
(
'../internals/export'
);
var
DESCRIPTORS
=
require
(
'../internals/descriptors'
);
var
FORCED
=
require
(
'../internals/object-prototype-accessors-forced'
);
var
aCallable
=
require
(
'../internals/a-callable'
);
var
toObject
=
require
(
'../internals/to-object'
);
var
definePropertyModule
=
require
(
'../internals/object-define-property'
);
// `Object.prototype.__defineGetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__
if
(
DESCRIPTORS
)
{
$
({
target
:
'Object'
,
proto
:
true
,
forced
:
FORCED
},
{
__defineGetter__
:
function
__defineGetter__
(
P
,
getter
)
{
definePropertyModule
.
f
(
toObject
(
this
),
P
,
{
get
:
aCallable
(
getter
),
enumerable
:
true
,
configurable
:
true
});
}
});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 7:38 PM (7 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3353278
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment