diff --git a/js/src/jsstr.h b/js/src/jsstr.h index 53ba2c1e66b..346da641303 100644 --- a/js/src/jsstr.h +++ b/js/src/jsstr.h @@ -555,7 +555,7 @@ class JSShortString : public JSFixedString } static const size_t MAX_SHORT_LENGTH = JSString::NUM_INLINE_CHARS + - INLINE_EXTENSION_CHARS + + INLINE_EXTENSION_CHARS -1 /* null terminator */; static inline bool lengthFits(size_t length) {