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:
parent
afd4e701f3
commit
1606b273e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user