From 61ffacf44bb5e7d669e531297b5cf033fa19a092 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Tue, 18 Sep 2018 09:28:54 -0400 Subject: [PATCH] src: fix compile failure in test Since original submit for https://github.com/nodejs/node-addon-api/pull/292 warnings were tightened through https://github.com/nodejs/node-addon-api/pull/315 causing the bigint test to fail to compile Fix the compile failure --- napi-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napi-inl.h b/napi-inl.h index e2319ac04..77f403e0c 100644 --- a/napi-inl.h +++ b/napi-inl.h @@ -581,7 +581,7 @@ inline size_t BigInt::WordCount() const { inline void BigInt::ToWords(int* sign_bit, size_t* word_count, uint64_t* words) { napi_status status = napi_get_value_bigint_words( _env, _value, sign_bit, word_count, words); - NAPI_THROW_IF_FAILED(_env, status); + NAPI_THROW_IF_FAILED_VOID(_env, status); } #endif // NAPI_EXPERIMENTAL