mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 517795 - followup to fix the issue 512046.
This commit is contained in:
parent
ed88fddf07
commit
1e96fce476
@ -123,6 +123,10 @@ iterator_trace(JSTracer *trc, JSObject *obj)
|
|||||||
* simplicity.
|
* simplicity.
|
||||||
*/
|
*/
|
||||||
JSObject *iterable = obj->getParent();
|
JSObject *iterable = obj->getParent();
|
||||||
|
if (!iterable) {
|
||||||
|
/* for (x in null) creates an iterator object with a null parent. */
|
||||||
|
return;
|
||||||
|
}
|
||||||
jsval iter_state = obj->fslots[JSSLOT_ITER_STATE];
|
jsval iter_state = obj->fslots[JSSLOT_ITER_STATE];
|
||||||
js_MarkEnumeratorState(trc, iterable, iter_state);
|
js_MarkEnumeratorState(trc, iterable, iter_state);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user