From 03d9d23a82b2c46abf1320d8d62071dcad147020 Mon Sep 17 00:00:00 2001 From: Marly Fleitas Date: Sat, 18 Apr 2020 12:00:47 -0700 Subject: [PATCH] doc: fix support bigint64/biguint64 guards PR-URL: https://github.com/nodejs/node-addon-api/pull/705 Reviewed-By: Michael Dawson Reviewed-By: Gabriel Schulhof Reviewed-By: Chengzhong Wu Reviewed-By: Nicola Del Gobbo --- napi-inl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/napi-inl.h b/napi-inl.h index f8657ae..e7b02b2 100644 --- a/napi-inl.h +++ b/napi-inl.h @@ -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;