1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[mujs] pcall instead of call

This commit is contained in:
Witold Filipczyk 2022-08-25 20:49:28 +02:00
parent afd4e701f3
commit 1606b273e7

View File

@ -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;