Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quickjs_backend: Log instance destruction
Browse files Browse the repository at this point in the history
past-due committed Jul 7, 2024
1 parent 0087a4a commit 98581a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/quickjs_backend.cpp
Original file line number Diff line number Diff line change
@@ -175,6 +175,8 @@ class quickjs_scripting_instance : public wzapi::scripting_instance
{
engineToInstanceMap.erase(ctx);

debug(LOG_INFO, "Destroying [%d]:%s/%s", player(), scriptPath().c_str(), scriptName().c_str());

if (!(JS_IsUninitialized(compiledScriptObj)))
{
JS_FreeValue(ctx, compiledScriptObj);

0 comments on commit 98581a5

Please sign in to comment.