I see the [interesting situation here](https://searchfox.org/mozilla-central/source/dom/workers/WorkerThread.cpp#131-137), that we first assert on `!mOtherThreadsDispatchingViaEventTarget` and then wait for `mOtherThreadsDispatchingViaEventTarget` to be decrement to 0 anyway. So most probably in an optimized build nothing evil happens at all (at least at this specific code position). Is this assert then really needed?
Bug 1584396 Comment 20 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I see the [interesting situation here](https://searchfox.org/mozilla-central/source/dom/workers/WorkerThread.cpp#131-137), that we first assert on `!mOtherThreadsDispatchingViaEventTarget` and then wait for `mOtherThreadsDispatchingViaEventTarget` to be decremented to 0 anyway. So most probably in an optimized build nothing evil happens at all (at least at this specific code position). Is this assert then really needed?