blob: 10ad0886ad8a227927911bdd63d9563ac28e36cc [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
// This test validates that if a function throws an exception after attach that function can still be generated in the debug mode.
function bar() {
try {
function foo() {
abc.def = 10; /**bp:stack();locals()**/
return 10;
}
foo();
}
catch (e) {
e;
}
WScript.Echo("Pass");
}
bar();
WScript.Attach(bar);