@@ -95,8 +95,8 @@ export function preventSetTimeout(
95
95
proxyApplyFn ( 'setTimeout' , function ( context ) {
96
96
const { callArgs } = context ;
97
97
const a = callArgs [ 0 ] instanceof Function
98
- ? String ( safe . Function_toString ( callArgs [ 0 ] ) )
99
- : String ( callArgs [ 0 ] ) ;
98
+ ? safe . String ( safe . Function_toString ( callArgs [ 0 ] ) )
99
+ : safe . String ( callArgs [ 0 ] ) ;
100
100
const b = callArgs [ 1 ] ;
101
101
if ( needleRaw === '' && range . unbound ( ) ) {
102
102
safe . uboLog ( logPrefix , `Called:\n${ a } \n${ b } ` ) ;
@@ -159,8 +159,8 @@ export function preventSetInterval(
159
159
proxyApplyFn ( 'setInterval' , function ( context ) {
160
160
const { callArgs } = context ;
161
161
const a = callArgs [ 0 ] instanceof Function
162
- ? String ( safe . Function_toString ( callArgs [ 0 ] ) )
163
- : String ( callArgs [ 0 ] ) ;
162
+ ? safe . String ( safe . Function_toString ( callArgs [ 0 ] ) )
163
+ : safe . String ( callArgs [ 0 ] ) ;
164
164
const b = callArgs [ 1 ] ;
165
165
if ( needleRaw === '' && range . unbound ( ) ) {
166
166
safe . uboLog ( logPrefix , `Called:\n${ a } \n${ b } ` ) ;
@@ -212,8 +212,8 @@ export function preventRequestAnimationFrame(
212
212
proxyApplyFn ( 'requestAnimationFrame' , function ( context ) {
213
213
const { callArgs } = context ;
214
214
const a = callArgs [ 0 ] instanceof Function
215
- ? String ( safe . Function_toString ( callArgs [ 0 ] ) )
216
- : String ( callArgs [ 0 ] ) ;
215
+ ? safe . String ( safe . Function_toString ( callArgs [ 0 ] ) )
216
+ : safe . String ( callArgs [ 0 ] ) ;
217
217
if ( needleRaw === '' ) {
218
218
safe . uboLog ( logPrefix , `Called:\n${ a } ` ) ;
219
219
} else if ( reNeedle . test ( a ) !== needleNot ) {
0 commit comments