From 156055b8d15d102fa99bd20c9ab10637f4665a5d Mon Sep 17 00:00:00 2001 From: John French 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 PR-URL: https://github.com/nodejs/node-addon-api/pull/345 Reviewed-By: : None, landed to unbreak CI --- napi-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napi-inl.h b/napi-inl.h index e2319ac..77f403e 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