From 632b57a8b488cbdcba90ca6918ad21c404d1f3f4 Mon Sep 17 00:00:00 2001 From: Alexey Grinevich Date: Tue, 3 Feb 2026 18:19:01 +0300 Subject: [PATCH] VariantObject::NodeGet should always return a value to avoid the error: # Fatal error in , line 0 # Check failed: !IsTheHole(*slot, isolate). --- src/disp.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/disp.cpp b/src/disp.cpp index d46c04b..cd0737a 100644 --- a/src/disp.cpp +++ b/src/disp.cpp @@ -1112,12 +1112,18 @@ void VariantObject::NodeGet(Local name, const PropertyCallbackInfoGetter& if ((self->value.vt & VT_ARRAY) != 0) { args.GetReturnValue().Set((uint32_t)self->value.ArrayLength()); } - } + else { + args.GetReturnValue().SetUndefined(); + } + } else { Local func; if (clazz_methods.get(isolate, id, &func)) { args.GetReturnValue().Set(func); } + else { + args.GetReturnValue().SetUndefined(); + } } }