@@ -223,6 +223,10 @@ function IMMEDIATE() {
223
223
return setImmediate && clearImmediate ;
224
224
}
225
225
226
+ function TIMERS ( ) {
227
+ return ! / M S I E .\. / . test ( USERAGENT ) ;
228
+ }
229
+
226
230
GLOBAL . tests = {
227
231
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
228
232
'es.symbol' : [ SYMBOLS_SUPPORT , function ( ) {
@@ -1851,16 +1855,17 @@ GLOBAL.tests = {
1851
1855
return Object . getOwnPropertyDescriptor ( GLOBAL , 'queueMicrotask' ) . value ;
1852
1856
} ,
1853
1857
'web.set-immediate' : IMMEDIATE ,
1858
+ 'web.set-interval' : TIMERS ,
1859
+ 'web.set-timeout' : TIMERS ,
1854
1860
'web.structured-clone' : function ( ) {
1855
1861
var error = new Error ( ) ;
1856
1862
var test = structuredClone ( { a : error , b : error } ) ;
1857
1863
if ( ! ( test && test . a === test . b && test . a instanceof Error && test . stack === error . stack ) ) return false ;
1858
1864
test = structuredClone ( new AggregateError ( [ 1 ] , 'a' , { cause : 3 } ) ) ;
1859
1865
return test . name == 'AggregateError' && test . errors [ 0 ] == 1 && test . message == 'a' && test . cause == 3 ;
1860
1866
} ,
1861
- 'web.timers' : function ( ) {
1862
- return ! / M S I E .\. / . test ( USERAGENT ) ;
1863
- } ,
1867
+ // TODO: Remove this module from `core-js@4` since it's split to submodules
1868
+ 'web.timers' : TIMERS ,
1864
1869
'web.url.constructor' : URL_AND_URL_SEARCH_PARAMS_SUPPORT ,
1865
1870
'web.url.to-json' : [ URL_AND_URL_SEARCH_PARAMS_SUPPORT , function ( ) {
1866
1871
return URL . prototype . toJSON ;
0 commit comments