mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 21:58:12 +08:00
parent
d378a9f3a5
commit
cff54408e6
@ -42457,7 +42457,7 @@ static JSValue js_string_pad(JSContext *ctx, JSValueConst this_val,
|
|||||||
}
|
}
|
||||||
if (n > JS_STRING_LEN_MAX) {
|
if (n > JS_STRING_LEN_MAX) {
|
||||||
JS_ThrowRangeError(ctx, "invalid string length");
|
JS_ThrowRangeError(ctx, "invalid string length");
|
||||||
goto fail2;
|
goto fail3;
|
||||||
}
|
}
|
||||||
if (string_buffer_init(ctx, b, n))
|
if (string_buffer_init(ctx, b, n))
|
||||||
goto fail3;
|
goto fail3;
|
||||||
|
Loading…
Reference in New Issue
Block a user