Skip to content

Commit 5e740f8

Browse files
addaleaxtniessen
andauthored
fixup! src: replace custom ASCII validation with simutf one
Co-authored-by: Tobias Nießen <[email protected]>
1 parent 52c8926 commit 5e740f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string_bytes.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ MaybeLocal<Value> StringBytes::Encode(Isolate* isolate,
582582

583583
case ASCII:
584584
if (simdutf::validate_ascii_with_errors(buf, buflen).error) {
585-
// The input contains non-ASCII bytes
585+
// The input contains non-ASCII bytes.
586586
char* out = node::UncheckedMalloc(buflen);
587587
if (out == nullptr) {
588588
*error = node::ERR_MEMORY_ALLOCATION_FAILED(isolate);

0 commit comments

Comments
 (0)