stringDictionaryBailOnNoProfileBug.js 896 B

1234567891011121314151617181920212223242526272829
  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. var NeedLoad = 'ValueX';
  6. function runAnimation(obj) {
  7. switch (obj) {
  8. case NeedLoad:
  9. break;
  10. case 'ValueY':
  11. WScript.Echo('ValueY');
  12. break;
  13. case 'Blah':
  14. WScript.Echo('Blah');
  15. break;
  16. default:
  17. if (obj === 'ValueY') {
  18. WScript.Echo('Bug');
  19. }
  20. WScript.Echo('default');
  21. break;
  22. }
  23. }
  24. runAnimation('ValueX');
  25. runAnimation('ValueY');