| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 07ab591 commit b9d21e5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -641,6 +641,11 @@ void Environment::RunAndClearNativeImmediates() { | |||
| 641 | 641 | if (!try_catch.HasTerminated()) | |
| 642 | 642 | FatalException(isolate(), try_catch); | |
| 643 | 643 | ||
| 644 | + // We are done with the current callback. Increase the counter so that | ||
| 645 | + // the steps below make everything *after* the current item part of | ||
| 646 | + // the new list. | ||
| 647 | + it++; | ||
| 648 | + | ||
| 644 | 649 | // Bail out, remove the already executed callbacks from list | |
| 645 | 650 | // and set up a new TryCatch for the other pending callbacks. | |
| 646 | 651 | std::move_backward(it, list.end(), list.begin() + (list.end() - it)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments