reduced JS_MAX_LOCAL_VARS (github issue #123)

This commit is contained in:
Fabrice Bellard 2023-12-22 11:06:37 +01:00 committed by Saúl Ibarra Corretgé
parent bfb4b35722
commit fad030bef2

View file

@ -191,7 +191,7 @@ typedef enum JSErrorEnum {
JS_NATIVE_ERROR_COUNT, /* number of different NativeError objects */ JS_NATIVE_ERROR_COUNT, /* number of different NativeError objects */
} JSErrorEnum; } JSErrorEnum;
#define JS_MAX_LOCAL_VARS 65536 #define JS_MAX_LOCAL_VARS 65535
#define JS_STACK_SIZE_MAX 65534 #define JS_STACK_SIZE_MAX 65534
#define JS_STRING_LEN_MAX ((1 << 30) - 1) #define JS_STRING_LEN_MAX ((1 << 30) - 1)