Backed out changeset d341f6827d75 (bug 1820119) for causing xpc failures in js/xpconnect/tests/unit/test_import_es6_modules.js CLOSED TREE

This commit is contained in:
Sandor Molnar
2023-03-16 19:18:45 +02:00
parent 5400754381
commit 1b2cc1a20d
5 changed files with 8 additions and 75 deletions

View File

@@ -318,10 +318,7 @@ bool ModuleLoaderBase::HostImportModuleDynamically(
aCx, uri, script, aReferencingPrivate, specifierString, aPromise);
if (!request) {
// Throws TypeError if CreateDynamicImport returns nullptr.
JS_ReportErrorNumberASCII(aCx, js::GetErrorMessage, nullptr,
JSMSG_DYNAMIC_IMPORT_NOT_SUPPORTED);
JS_ReportErrorASCII(aCx, "Dynamic import not supported in this context");
return false;
}