blob: 6ed629836b08979fa6356c4b68bc924db86647bd [file]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
WScript.forceDebugArrayBuffer = true; // force expression to be an ArrayBuffer to test JsDiagEvaluate.
function foo() {
var x = "bp A";
x; /**bp(A):evaluate('x');enableBp('B');deleteBp('D');**/
x = "Hit loc B";
x; /**loc(B):evaluate('x');disableBp('C');**/
x = "bp C, BUG";
x; /**bp(C):evaluate('x');**/
x = "bp D, BUG";
x; /**bp(D):evaluate('x');**/
x = "bp D";
x; /**bp:evaluate('x');**/
}
WScript.Attach(foo);
WScript.Detach(foo);
WScript.Attach(foo);
WScript.Echo("pass");