blob: b738dc22311f65af55f3e20d08e003230eafb1ba [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 foo()
{
WScript.Echo("In function foo");
debugger;
var a1 = new Array(10);
a1[0] = {a:"10"};
eval('var inEval = 10;\n inEval++;\n');
debugger;
}
function bar()
{
WScript.Echo("In function bar");
debugger;
var a2 = {b:10};
debugger;
return a2.b;
}
foo();
bar();
WScript.Attach(foo);
WScript.Detach(foo);