From 1606b273e75bbdf4980fcb803602e52d59809bae Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Thu, 25 Aug 2022 20:49:28 +0200 Subject: [PATCH] [mujs] pcall instead of call --- src/ecmascript/mujs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecmascript/mujs.cpp b/src/ecmascript/mujs.cpp index 9ac5016fa..4c5a687bc 100644 --- a/src/ecmascript/mujs.cpp +++ b/src/ecmascript/mujs.cpp @@ -260,7 +260,7 @@ mujs_eval_stringback(struct ecmascript_interpreter *interpreter, js_loadstring(J, "[script]", code->source); js_pushundefined(J); - js_call(J, 0); + js_pcall(J, 0); if (js_isundefined(J, -1)) { ret = NULL; @@ -320,7 +320,7 @@ mujs_eval_boolback(struct ecmascript_interpreter *interpreter, js_loadstring(J, "[script]", code->source); js_pushundefined(J); - js_call(J, 0); + js_pcall(J, 0); if (js_isundefined(J, -1)) { ret = -1;