From fad030bef26732c008e52f2f7ff6ac709f513b4a Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Fri, 22 Dec 2023 11:06:37 +0100 Subject: [PATCH] reduced JS_MAX_LOCAL_VARS (github issue #123) --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index bcf6f7d..52d6517 100644 --- a/quickjs.c +++ b/quickjs.c @@ -191,7 +191,7 @@ typedef enum JSErrorEnum { JS_NATIVE_ERROR_COUNT, /* number of different NativeError objects */ } JSErrorEnum; -#define JS_MAX_LOCAL_VARS 65536 +#define JS_MAX_LOCAL_VARS 65535 #define JS_STACK_SIZE_MAX 65534 #define JS_STRING_LEN_MAX ((1 << 30) - 1)