Bug 1778076 - Part 4: Rename ModuleInstantiate with ModuleLink to follow the spec r=arai

The ModuleObject methods will be dealt with in the next patch.

Depends on D151013

Differential Revision: https://phabricator.services.mozilla.com/D151014
This commit is contained in:
Jon Coppeard
2022-07-05 13:04:55 +00:00
parent dedf0aceae
commit 21befd6da6
8 changed files with 19 additions and 23 deletions

View File

@@ -985,7 +985,7 @@ bool ModuleLoaderBase::InstantiateModuleGraph(ModuleLoadRequest* aRequest) {
return true;
}
if (!JS::ModuleInstantiate(jsapi.cx(), module)) {
if (!JS::ModuleLink(jsapi.cx(), module)) {
LOG(("ScriptLoadRequest (%p): Instantiate failed", aRequest));
MOZ_ASSERT(jsapi.HasException());
JS::RootedValue exception(jsapi.cx());