Skip to content

Commit

Permalink
doc: fix support bigint64/biguint64 guards
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
fs-eire authored and mhdawson committed Apr 24, 2020
1 parent fedc819 commit 4de23c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,10 @@ inline uint8_t TypedArray::ElementSize() const {
case napi_float32_array:
return 4;
case napi_float64_array:
#if (NAPI_VERSION > 5)
case napi_bigint64_array:
case napi_biguint64_array:
#endif // (NAPI_VERSION > 5)
return 8;
default:
return 0;
Expand Down

0 comments on commit 4de23c9

Please sign in to comment.