Skip to content

Commit

Permalink
Fix queueMicrotask polyfill
Browse files Browse the repository at this point in the history
Reported-by: jilen <[email protected]>
  • Loading branch information
armanbilge committed Jun 15, 2023
1 parent 3806bf1 commit 88576b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private[effect] final class BatchingMacrotaskExecutor(
if (js.typeOf(js.Dynamic.global.queueMicrotask) == "function")
js.Dynamic.global.queueMicrotask.asInstanceOf[js.Function1[js.Function0[Any], Any]]
else {
val resolved = js.Dynamic.global.Promise.resolved(())
val resolved = js.Dynamic.global.Promise.resolve(())
task => resolved.`then`(task)
}

Expand Down

0 comments on commit 88576b0

Please sign in to comment.