repeatStringCases.js 739 B

1234567891011121314151617181920212223242526
  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. //
  6. // Test case that caught bug 19988
  7. //
  8. function test(x){
  9. switch(x){
  10. case "a":
  11. WScript.Echo("a");
  12. break;
  13. case "b":
  14. WScript.Echo("b");
  15. break;
  16. case "a":
  17. break;
  18. case "b":
  19. WScript.Echo("bb");
  20. break;
  21. }
  22. }
  23. test("a");
  24. test("b");