Remove new lines in function constructor

This commit is contained in:
bozo.kopic 2024-05-08 17:58:23 +02:00
parent 0c8fecab23
commit 95b81bf454
No known key found for this signature in database
GPG key ID: 61E770F9ED93DF2A

View file

@ -38397,7 +38397,7 @@ static JSValue js_function_constructor(JSContext *ctx, JSValueConst new_target,
if (string_buffer_concat_value(b, argv[i]))
goto fail;
}
string_buffer_puts8(b, "\n) {\n");
string_buffer_puts8(b, ") {");
if (n >= 0) {
if (string_buffer_concat_value(b, argv[n]))
goto fail;