diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index f0cd988b6858..37f0f1c6d4a5 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -4007,6 +4007,9 @@ LookupOwnPropertyWithFlagsInline(ExclusiveContext *cx, if (index < obj->template as().length()) { objp.set(obj); MarkDenseOrTypedArrayElementFound(propp); + } else { + objp.set(nullptr); + propp.set(nullptr); } *donep = true; return true;