Branching.js 648 B

12345678910111213141516171819
  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 main()
  6. {
  7. var a; // a = undefined
  8. var e = 0;
  9. // We shouldn't invert this branch as relational comparison involving
  10. // undefined always returns false.
  11. if (!(a >= 1))
  12. e = true;
  13. WScript.Echo("e = " + e);
  14. }
  15. main();