Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9697240
functiontostring.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
functiontostring.js
View Options
import
{
getOriginalFunction
}
from
'@sentry/utils'
;
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
=
getOriginalFunction
(
this
)
||
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/x-java
Expires
Mon, Aug 18, 11:13 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3354712
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment