diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2023-03-04 18:52:55 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2023-03-04 23:40:32 -0800 |
commit | 2599757ff051dc5cc6b3e2c14fb4c821d4afbb35 (patch) | |
tree | e45ce7943b6d8fb0c1790d68952ffef70e7eb895 | |
parent | aa12b498290e96dfbb36156ed0e73d432e8378c2 (diff) | |
download | gjs-2599757ff051dc5cc6b3e2c14fb4c821d4afbb35.tar.gz |
context: Use module name in promise reaction function debug tag
For debugging, make sure the module identifier is part of the promise
reaction function's debug tag, so that when we break on it we can tell
which module was being evaluated.
-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 f9787017..be9049e6 100644 --- a/gjs/context.cpp +++ b/gjs/context.cpp @@ -613,7 +613,7 @@ static void load_context_module(JSContext* cx, const char* uri, GjsContextPrivate::from_cx(cx)->main_loop_release(); return false; }, - "context"); + debug_identifier); if (!ok) { gjs_log_exception(cx); @@ -1490,7 +1490,7 @@ bool GjsContextPrivate::eval_module(const char* identifier, ok = add_promise_reactions( m_cx, evaluation_promise, on_context_module_resolved, - on_context_module_rejected_log_exception, "context"); + on_context_module_rejected_log_exception, identifier); } bool exiting = false; |