mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-27 00:41:46 +00:00
ported from UXP: Issue #618 - Align error handling for module scripts with the spec (again) (0d874713)
This commit is contained in:
@@ -83,7 +83,7 @@ ModuleLoadRequest::ModuleLoaded()
|
||||
// been loaded.
|
||||
|
||||
mModuleScript = mLoader->GetFetchedModule(mURI);
|
||||
if (!mModuleScript || mModuleScript->IsErrored()) {
|
||||
if (!mModuleScript || mModuleScript->HasParseError()) {
|
||||
ModuleErrored();
|
||||
return;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ void
|
||||
ModuleLoadRequest::ModuleErrored()
|
||||
{
|
||||
mLoader->CheckModuleDependenciesLoaded(this);
|
||||
MOZ_ASSERT(!mModuleScript || mModuleScript->IsErrored());
|
||||
MOZ_ASSERT(!mModuleScript || mModuleScript->HasParseError());
|
||||
|
||||
CancelImports();
|
||||
SetReady();
|
||||
|
||||
Reference in New Issue
Block a user