We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6682787 commit f11c0abCopy full SHA for f11c0ab
src/node_buffer.cc
@@ -1252,7 +1252,8 @@ static void IsAscii(const FunctionCallbackInfo<Value>& args) {
1252
env, "Cannot validate on a detached buffer");
1253
}
1254
1255
- args.GetReturnValue().Set(simdutf::validate_ascii(abv.data(), abv.length()));
+ args.GetReturnValue().Set(
1256
+ !simdutf::validate_ascii_with_errors(abv.data(), abv.length()).error);
1257
1258
1259
void SetBufferPrototype(const FunctionCallbackInfo<Value>& args) {
0 commit comments