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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user