From 92d0cd3c7ccfe7e8ca7e376013af62288dcd01b5 Mon Sep 17 00:00:00 2001 From: Jess Date: Wed, 19 Mar 2025 10:29:06 +1300 Subject: [PATCH] LibJS: Make `InvalidIndex` detail the full range of allowed values --- Libraries/LibJS/Runtime/ErrorTypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Runtime/ErrorTypes.h b/Libraries/LibJS/Runtime/ErrorTypes.h index 206e4772ca0..9322c58c76f 100644 --- a/Libraries/LibJS/Runtime/ErrorTypes.h +++ b/Libraries/LibJS/Runtime/ErrorTypes.h @@ -77,7 +77,7 @@ M(InvalidEnumerationValue, "Invalid value '{}' for enumeration type '{}'") \ M(InvalidFractionDigits, "Fraction Digits must be an integer no less than 0, and no greater than 100") \ M(InvalidHint, "Invalid hint: \"{}\"") \ - M(InvalidIndex, "Index must be a positive integer") \ + M(InvalidIndex, "Index must be a positive integer no greater than 2^53-1") \ M(InvalidLeftHandAssignment, "Invalid left-hand side in assignment") \ M(InvalidLength, "Invalid {} length") \ M(InvalidNormalizationForm, "The normalization form must be one of NFC, NFD, NFKC, NFKD. Got '{}'") \