diff options
-rw-r--r-- | gjs/context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gjs/context.cpp b/gjs/context.cpp index 94a45c8b..f9787017 100644 --- a/gjs/context.cpp +++ b/gjs/context.cpp @@ -565,12 +565,12 @@ static bool add_promise_reactions(JSContext* cx, JS::HandleValue promise, JS::RootedFunction on_rejected( cx, - js::NewFunctionWithReserved(cx, reject, 1, 0, resolved_tag.c_str())); + js::NewFunctionWithReserved(cx, reject, 1, 0, rejected_tag.c_str())); if (!on_rejected) return false; JS::RootedFunction on_resolved( cx, - js::NewFunctionWithReserved(cx, resolve, 1, 0, rejected_tag.c_str())); + js::NewFunctionWithReserved(cx, resolve, 1, 0, resolved_tag.c_str())); if (!on_resolved) return false; |