blob: 0bc11f1e10b7d8e1165d3b1ab265d9f27c1bd091 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function test()
{
var i = 0;
function f1()
{
if (i == 0)
{
i++;
return f1();
}
return i;
}
return f1;
}
WScript.Echo((test())());
WScript.Echo((test())());