@@ -2957,7 +2957,8 @@ static void ReadFileUtf8(const FunctionCallbackInfo<Value>& args) {
29572957 if (!String::NewFromOneByte (isolate,
29582958 reinterpret_cast <const uint8_t *>(data),
29592959 v8::NewStringType::kNormal ,
2960- static_cast <int >(total)).ToLocal (&str)) {
2960+ static_cast <int >(total))
2961+ .ToLocal (&str)) {
29612962 isolate->ThrowException (ERR_STRING_TOO_LONG (isolate));
29622963 return ;
29632964 }
@@ -2968,15 +2969,15 @@ static void ReadFileUtf8(const FunctionCallbackInfo<Value>& args) {
29682969 // Latin1-fits: one-byte V8 string, half the heap of UTF-16.
29692970 MaybeStackBuffer<char , 4096 > latin1;
29702971 latin1.AllocateSufficientStorage (total);
2971- simdutf::result l1 = simdutf::convert_utf8_to_latin1_with_errors (
2972- data, total, latin1.out ());
2972+ simdutf::result l1 =
2973+ simdutf::convert_utf8_to_latin1_with_errors ( data, total, latin1.out ());
29732974 if (!l1.error ) {
29742975 Local<String> str;
2975- if (!String::NewFromOneByte (
2976- isolate ,
2977- reinterpret_cast < const uint8_t *>(latin1. out ()) ,
2978- v8::NewStringType:: kNormal ,
2979- static_cast < int >(l1. count )) .ToLocal (&str)) {
2976+ if (!String::NewFromOneByte (isolate,
2977+ reinterpret_cast < const uint8_t *>(latin1. out ()) ,
2978+ v8::NewStringType:: kNormal ,
2979+ static_cast < int >(l1. count ))
2980+ .ToLocal (&str)) {
29802981 isolate->ThrowException (ERR_STRING_TOO_LONG (isolate));
29812982 return ;
29822983 }
@@ -2996,9 +2997,11 @@ static void ReadFileUtf8(const FunctionCallbackInfo<Value>& args) {
29962997 return ;
29972998 }
29982999 Local<String> str;
2999- if (!String::NewFromTwoByte (isolate, u16 .out (),
3000+ if (!String::NewFromTwoByte (isolate,
3001+ u16 .out (),
30003002 v8::NewStringType::kNormal ,
3001- static_cast <int >(r.count )).ToLocal (&str)) {
3003+ static_cast <int >(r.count ))
3004+ .ToLocal (&str)) {
30023005 isolate->ThrowException (ERR_STRING_TOO_LONG (isolate));
30033006 return ;
30043007 }
@@ -3010,8 +3013,8 @@ static void ReadFileUtf8(const FunctionCallbackInfo<Value>& args) {
30103013 // Invalid UTF-8: fall back to V8 for replacement-char (U+FFFD) semantics.
30113014 {
30123015 Local<Value> val;
3013- if (!ToV8Value (env->context (), result, isolate)
3014- . ToLocal (&val)) [[unlikely]] {
3016+ if (!ToV8Value (env->context (), result, isolate). ToLocal (&val))
3017+ [[unlikely]] {
30153018 return ;
30163019 }
30173020 args.GetReturnValue ().Set (val);
0 commit comments