node-api: address coverity report

Address missing initialization reported by coverity

Signed-off-by: Michael Dawson <midawson@redhat.com>
PR-URL: https://github.com/nodejs/node/pull/52584
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
This commit is contained in:
Michael Dawson 2024-04-26 10:36:02 -04:00 committed by GitHub
parent 2334d5cda8
commit e4c1d020dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -833,7 +833,7 @@ void Reference::WeakCallback(const v8::WeakCallbackInfo<Reference>& data) {
*/ */
class ExternalWrapper { class ExternalWrapper {
private: private:
explicit ExternalWrapper(void* data) : data_(data) {} explicit ExternalWrapper(void* data) : data_(data), type_tag_{0, 0} {}
static void WeakCallback(const v8::WeakCallbackInfo<ExternalWrapper>& data) { static void WeakCallback(const v8::WeakCallbackInfo<ExternalWrapper>& data) {
ExternalWrapper* wrapper = data.GetParameter(); ExternalWrapper* wrapper = data.GetParameter();