JsDiagBreakpoints_ArrayBuffer.js 911 B

123456789101112131415161718192021222324
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. WScript.forceDebugArrayBuffer = true; // force expression to be an ArrayBuffer to test JsDiagEvaluate.
  6. function foo() {
  7. var x = "bp A";
  8. x; /**bp(A):evaluate('x');enableBp('B');deleteBp('D');**/
  9. x = "Hit loc B";
  10. x; /**loc(B):evaluate('x');disableBp('C');**/
  11. x = "bp C, BUG";
  12. x; /**bp(C):evaluate('x');**/
  13. x = "bp D, BUG";
  14. x; /**bp(D):evaluate('x');**/
  15. x = "bp D";
  16. x; /**bp:evaluate('x');**/
  17. }
  18. WScript.Attach(foo);
  19. WScript.Detach(foo);
  20. WScript.Attach(foo);
  21. WScript.Echo("pass");