Skip to content

Commit 4de23c9

Browse files
fs-eiremhdawson
authored andcommitted
doc: fix support bigint64/biguint64 guards
PR-URL: #705 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Nicola Del Gobbo <[email protected]>
1 parent fedc819 commit 4de23c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

napi-inl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,6 +1628,10 @@ inline uint8_t TypedArray::ElementSize() const {
16281628
case napi_float32_array:
16291629
return 4;
16301630
case napi_float64_array:
1631+
#if (NAPI_VERSION > 5)
1632+
case napi_bigint64_array:
1633+
case napi_biguint64_array:
1634+
#endif // (NAPI_VERSION > 5)
16311635
return 8;
16321636
default:
16331637
return 0;

0 commit comments

Comments
 (0)