Skip to content

Commit

Permalink
doc: fix support bigint64/biguint64 guards
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node-addon-api#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
Marlyfleitas committed Apr 24, 2020
1 parent 1ceb8ae commit 03d9d23
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 03d9d23

Please sign in to comment.