Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125853
functiontostring.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
functiontostring.js
View Options
var
originalFunctionToString
;
/** Patch toString calls to return proper name for wrapped functions */
var
FunctionToString
=
/** @class */
(
function
()
{
function
FunctionToString
()
{
/**
* @inheritDoc
*/
this
.
name
=
FunctionToString
.
id
;
}
/**
* @inheritDoc
*/
FunctionToString
.
prototype
.
setupOnce
=
function
()
{
// eslint-disable-next-line @typescript-eslint/unbound-method
originalFunctionToString
=
Function
.
prototype
.
toString
;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Function
.
prototype
.
toString
=
function
()
{
var
args
=
[];
for
(
var
_i
=
0
;
_i
<
arguments
.
length
;
_i
++
)
{
args
[
_i
]
=
arguments
[
_i
];
}
var
context
=
this
.
__sentry_original__
||
this
;
return
originalFunctionToString
.
apply
(
context
,
args
);
};
};
/**
* @inheritDoc
*/
FunctionToString
.
id
=
'FunctionToString'
;
return
FunctionToString
;
}());
export
{
FunctionToString
};
//# sourceMappingURL=functiontostring.js.map
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 9:25 PM (4 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3347954
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment