Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9349563
object-prototype-accessors-forced.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
739 B
Subscribers
None
object-prototype-accessors-forced.js
View Options
'use strict'
;
var
IS_PURE
=
require
(
'../internals/is-pure'
);
var
global
=
require
(
'../internals/global'
);
var
fails
=
require
(
'../internals/fails'
);
var
WEBKIT
=
require
(
'../internals/engine-webkit-version'
);
// Forced replacement object prototype accessors methods
module
.
exports
=
IS_PURE
||
!
fails
(
function
()
{
// This feature detection crashes old WebKit
// https://github.com/zloirock/core-js/issues/232
if
(
WEBKIT
&&
WEBKIT
<
535
)
return
;
var
key
=
Math
.
random
();
// In FF throws only define methods
// eslint-disable-next-line no-undef, no-useless-call, es-x/no-legacy-object-prototype-accessor-methods -- required for testing
__defineSetter__
.
call
(
null
,
key
,
function
()
{
/* empty */
});
delete
global
[
key
];
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 7:30 PM (7 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3305005
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment