1354527 - Crash [@ js::jit::RInstructionResults::operator[]]

1354527 - Recover the iterator object when closing during exception handling.
This commit is contained in:
win7-7 2026-01-07 01:09:51 +02:00 committed by wuggy
commit 1f0c1ad851

View file

@ -347,7 +347,8 @@ CloseLiveIteratorIon(JSContext* cx, const InlineFrameIterator& frame, JSTryNote*
for (unsigned i = 0; i < skipSlots; i++)
si.skip();
Value v = si.read();
MaybeReadFallback recover(cx, cx->activation()->asJit(), &frame.frame(), MaybeReadFallback::Fallback_DoNothing);
Value v = si.maybeRead(recover);
RootedObject iterObject(cx, &v.toObject());
if (isDestructuring) {