Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the run-to-completion principle. (#536)
* Improve the run-to-completion principle. * "While an event loop is running" wasn't the right period to limit changes. * We have a list of exceptions to this principle. * Warn against letting an attribute change in the middle of a statement. * Apply Martin's suggestions. Co-authored-by: Martin Thomson <[email protected]> * Remove a redundant sentence of emphasis on not changing attributes in the middle of a statement. * Be more general than `while true`. Co-authored-by: Martin Thomson <[email protected]> * Move a positive statement to the top of the principle. * Remove irrelevant and incorrect claims. * It doesn't matter whether JS is a wrapper around code in another language. * JS doesn't always get to complete: users can kill it. * Apply changes resulting from Jan-Ivar's code review Co-authored-by: Jan-Ivar Bruaroey <[email protected]> * Identify which LockManager. This can be reverted once WICG/shared-storage#212 is merged and crawled. --------- Co-authored-by: Martin Thomson <[email protected]> Co-authored-by: Jan-Ivar Bruaroey <[email protected]>
- Loading branch information