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 <michael_dawson@ca.ibm.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
  • Loading branch information
wroy7860 committed Apr 24, 2020
1 parent 33a6354 commit fa79966
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 fa79966

Please sign in to comment.