-
-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Possible bug here: the
inMC = true
statement will never execute.It might work under test, where
planWork()
returns a truthy timer handle - but in a browser it's returning the return-value from postMessage which is a falsy void, so this assignment can't happen.planWork
doesn't have a defined return-value, so you probably want something like:(on the other hand, if you meant for
inMC
to be settrue
only if there's any work left to plan, that's going to be harder, sinceplanWork
only schedulesperformWork
to be executed later - it doesn't know at that time if there's work left or not...)