There was an error while loading. Please reload this page.
1 parent 2e597de commit 1f3f083Copy full SHA for 1f3f083
src/node_buffer.cc
@@ -1230,7 +1230,8 @@ static void IsAscii(const FunctionCallbackInfo<Value>& args) {
1230
env, "Cannot validate on a detached buffer");
1231
}
1232
1233
- args.GetReturnValue().Set(simdutf::validate_ascii(abv.data(), abv.length()));
+ args.GetReturnValue().Set(
1234
+ !simdutf::validate_ascii_with_errors(abv.data(), abv.length()).error);
1235
1236
1237
void SetBufferPrototype(const FunctionCallbackInfo<Value>& args) {
0 commit comments