From c956d26d117461488a4bda01192bfd7b041ed133 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 4 Dec 2017 10:42:26 +0300 Subject: [PATCH] sync() raises "RangeError: invalid stack index 0" in JS #437 --- src/jsapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsapi.c b/src/jsapi.c index 2da9612..23c6449 100644 --- a/src/jsapi.c +++ b/src/jsapi.c @@ -747,7 +747,7 @@ static const struct{duk_c_function func; s32 params;} ApiFunc[] = {duk_textri,14}, {duk_clip, 4}, {duk_music, 4}, - {duk_sync, 0}, + {duk_sync, 1}, }; static void initDuktape(tic_machine* machine)