Fix for infinite recursion in evil case
David Faure
dfaure at klaralvdalens-datakonsult.se
Fri Nov 21 12:37:01 CET 2003
On Friday 21 November 2003 09:32, Maciej Stachowiak wrote:
>
> On Nov 18, 2003, at 8:35 AM, David Faure wrote:
>
> > The attached testcase (from the Mozilla testsuite) is about putting an
> > array as an element of itself (!!!)
> > It looped infinitely in toString() - but for some reason, only with
> > KJS_VERBOSE enabled.
>
> I couldn't reproduce the infinite loop in Safari so I'm not merging
> this for now.
Harri found a better testcase for this problem:
var a = [];
a.push(a);
a.push(a);
print(a); (or alert, or toString)
--
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
More information about the Khtml-devel
mailing list