Skip to content

Commit

Permalink
[unity]高版本quickjs兼容:新qjs执行模块后返回promise(原来是undefined),不释放会内存泄露,debug版本…
Browse files Browse the repository at this point in the history
…触发assert(list_empty(&rt->gc_obj_list));
  • Loading branch information
chexiongsheng committed Apr 18, 2024
1 parent 5e932d1 commit 0b5d97c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unity/native_src/Src/BackendEnv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ JSValue esmodule::ExecuteModule(JSContext *ctx, JSValueConst this_val, int argc,
if (JS_IsException(EvalRet)) {
return EvalRet;
}
JS_FreeValue(ctx, EvalRet);
auto Namespace = JS_GET_MODULE_NS(ctx, EntryModule);
if (JS_IsUndefined(Namespace) || JS_IsNull(Namespace))
{
Expand Down

0 comments on commit 0b5d97c

Please sign in to comment.