Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
* Contributor:
* Christian Holler <decoder@own-hero.net>
*/
//-----------------------------------------------------------------------------
var BUGNUMBER = 622167;
var summary = 'Handle infinite recursion';
print(BUGNUMBER + ": " + summary);
/**************
* BEGIN TEST *
**************/
function eval() { eval(); }
function DoWhile_3()
{
eval();
}
try
{
DoWhile_3();
}
catch(e) { }
var r;
function* f()
{
r = arguments;
test();
yield 170;
}
function test()
{
function foopy()
{
try
{
for (var i of f());
}
catch (e)
{
gc();
}
}
foopy();
}
test();
/******************************************************************************/
if (typeof reportCompare === "function")
reportCompare(true, true);
print("All tests passed!");