Skip to content

Commit ce0235e

Browse files
esprehnfacebook-github-bot
authored andcommitted
Add missing delete to requestIdleCallback
Summary: This line accidentally became a no-op when the Map was converted to an Object. Closes #15891 Differential Revision: D5811069 Pulled By: TheSavior fbshipit-source-id: 43ac1835d15e2bee67ee45646bc238f917013836
1 parent b45c91d commit ce0235e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Libraries/Core/Timers/JSTimers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ const JSTimers = {
331331
const timeoutId = requestIdleCallbackTimeouts[id];
332332
if (timeoutId) {
333333
JSTimers.clearTimeout(timeoutId);
334-
requestIdleCallbackTimeouts[id];
334+
delete requestIdleCallbackTimeouts[id];
335335
}
336336
return func(deadline);
337337
}

0 commit comments

Comments
 (0)