null access

This commit is contained in:
2025-12-28 22:56:15 -06:00
parent 1833a3c74c
commit dca1963b5d
3 changed files with 10 additions and 28 deletions

View File

@@ -6780,7 +6780,7 @@ JSValue JS_GetPropertyInternal(JSContext *ctx, JSValueConst obj,
if (unlikely(tag != JS_TAG_OBJECT)) {
switch(tag) {
case JS_TAG_NULL:
return JS_ThrowTypeErrorAtom(ctx, "cannot read property '%s' of null", prop);
return JS_NULL;
case JS_TAG_EXCEPTION:
return JS_EXCEPTION;
case JS_TAG_STRING: