This commit is contained in:
Dmitry Volyntsev 2024-08-11 13:09:22 +02:00 committed by GitHub
commit aa5d2d3bfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42457,7 +42457,7 @@ static JSValue js_string_pad(JSContext *ctx, JSValueConst this_val,
}
if (n > JS_STRING_LEN_MAX) {
JS_ThrowRangeError(ctx, "invalid string length");
goto fail2;
goto fail3;
}
if (string_buffer_init(ctx, b, n))
goto fail3;