Fix napi_is_buffer/napi_is_typedarray to match Node.js (#17034)

This commit is contained in:
190n
2025-02-03 21:49:27 -08:00
committed by GitHub
parent 0861c03b37
commit a8d159da22
9 changed files with 73 additions and 21 deletions

View File

@@ -345,7 +345,7 @@ pub const Tag = enum(short) {
return .timestamptz;
}
if (tag.isTypedArray()) {
if (tag.isTypedArrayOrArrayBuffer()) {
if (tag == .Int32Array)
return .int4_array;