2
0

bailout4.js 607 B

12345678910111213141516171819202122232425
  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. function func(i)
  6. {
  7. var a = 3;
  8. var b;
  9. if (i)
  10. {
  11. a = 4;
  12. b = a + i;
  13. }
  14. else
  15. {
  16. b = a + i;
  17. }
  18. return b;
  19. }
  20. WScript.Echo(func(true));
  21. WScript.Echo(func(false));