Skip to content

Commit

Permalink
Merge pull request #3693 from armanbilge/fix/queue-microtask-polyfill
Browse files Browse the repository at this point in the history
Fix `queueMicrotask` polyfill
  • Loading branch information
armanbilge authored Jun 15, 2023
2 parents 3806bf1 + 88576b0 commit e593326
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 e593326

Please sign in to comment.