From 498a82fc08bb764de552b62bf05f0158ccf6d797 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Fri, 22 Dec 2023 11:06:37 +0100 Subject: reduced JS_MAX_LOCAL_VARS (github issue #123) --- lib/quickjs/quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/quickjs/quickjs.c') diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index 79e63dab..ff974c3d 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -198,7 +198,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) -- cgit 1.4.1-2-gfad0