From ef8d18da70c2c2efedc5e4db1dca0ece30ac5d14 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 3 Jul 2020 14:21:27 +0000 Subject: Issue #618 - Match JSAPI names with the changes in 9ca74147225eed305e28c7887f9b2251aeeb0f36 Ref: BZ 1388728 --- dom/script/ScriptLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dom/script') diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp index 7aca04da5..736bb4349 100644 --- a/dom/script/ScriptLoader.cpp +++ b/dom/script/ScriptLoader.cpp @@ -888,7 +888,7 @@ ScriptLoader::InstantiateModuleTree(ModuleLoadRequest* aRequest) NS_ENSURE_SUCCESS(rv, false); JS::Rooted module(jsapi.cx(), ms->ModuleRecord()); - bool ok = NS_SUCCEEDED(nsJSUtils::ModuleDeclarationInstantiation(jsapi.cx(), module)); + bool ok = NS_SUCCEEDED(nsJSUtils::ModuleInstantiate(jsapi.cx(), module)); JS::RootedValue exception(jsapi.cx()); if (!ok) { @@ -1953,7 +1953,7 @@ ScriptLoader::EvaluateScript(ScriptLoadRequest* aRequest) } else { JS::Rooted module(aes.cx(), ms->ModuleRecord()); MOZ_ASSERT(module); - rv = nsJSUtils::ModuleEvaluation(aes.cx(), module); + rv = nsJSUtils::ModuleEvaluate(aes.cx(), module); } } else { JS::CompileOptions options(aes.cx()); -- cgit v1.2.3