reduced JS_MAX_LOCAL_VARS (github issue #123)

This commit is contained in:
Fabrice Bellard 2023-12-22 11:06:37 +01:00
parent e68993b678
commit e9290401ce

View File

@ -197,7 +197,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)