Bug 1593766 relax assertion to handle case of no CycleCollectedJSContext created r=baku

This can happen when addModule() has not be called, but the thread is created
just to send a NotifyWorkletFinished message.

Differential Revision: https://phabricator.services.mozilla.com/D51925

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Karl Tomlinson 2019-11-06 12:36:41 +00:00
Родитель c780ae512f
Коммит f93dadfd79
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -373,7 +373,7 @@ void WorkletThread::Terminate() {
}
void WorkletThread::TerminateInternal() {
AssertIsOnWorkletThread();
MOZ_ASSERT(!CycleCollectedJSContext::Get() || IsOnWorkletThread());
mExitLoop = true;