зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1822717 - Relax assertion about module request state when an error occurs r=yulia
ModuleErrored() can be called when we are in the compiling state too, if we are parsing the module off-thread. Differential Revision: https://phabricator.services.mozilla.com/D173160
This commit is contained in:
Родитель
90a1df9a44
Коммит
45f3eca05d
|
@ -0,0 +1,56 @@
|
|||
// Large (hence OMT compiled) module with a syntax error.
|
||||
|
||||
this is a syntax error
|
||||
|
||||
/*
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
*/
|
|
@ -0,0 +1 @@
|
|||
<script type="module" src="1822717-module.js"></script>
|
|
@ -265,3 +265,4 @@ load 1757923.html
|
|||
load 1766472.html
|
||||
pref(dom.enable_web_task_scheduling,true) load 1780790.html
|
||||
load 1700237.html
|
||||
load 1822717.html
|
||||
|
|
|
@ -151,7 +151,7 @@ void ModuleLoadRequest::ModuleErrored() {
|
|||
return;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(IsFetching() || IsLoadingImports());
|
||||
MOZ_ASSERT(!IsReadyToRun());
|
||||
|
||||
CheckModuleDependenciesLoaded();
|
||||
MOZ_ASSERT(IsErrored());
|
||||
|
|
Загрузка…
Ссылка в новой задаче