[gjs/ewlsh/march-maintenance: 1/2] module: Replace leftover call to FinishDynamicModuleImport_NoTLA




commit ca20a0037d89ccbc9a4247f68fe4f20aa788c338
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Mar 5 11:22:24 2022 -0800

    module: Replace leftover call to FinishDynamicModuleImport_NoTLA

 gjs/module.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gjs/module.cpp b/gjs/module.cpp
index d46a02c69..3b54a3fca 100644
--- a/gjs/module.cpp
+++ b/gjs/module.cpp
@@ -667,9 +667,8 @@ bool gjs_dynamic_module_resolve(JSContext* cx,
 
     JS::RootedValue result(cx);
     if (!JS::Call(cx, loader, "moduleResolveAsyncHook", args, &result))
-        return JS::FinishDynamicModuleImport_NoTLA(
-            cx, JS::DynamicImportStatus::Failed, importing_module_priv,
-            module_request, internal_promise);
+        return JS::FinishDynamicModuleImport(cx, nullptr, importing_module_priv,
+                                             module_request, internal_promise);
 
     // Release in finish_import
     GjsContextPrivate* priv = GjsContextPrivate::from_cx(cx);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]