polyInliningUninitializedRetVal.js 664 B

1234567891011121314151617181920212223
  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 leaf() { return 1; }
  6. function f1() {
  7. var b = true || true;
  8. return leaf();
  9. }
  10. function f2 () {
  11. var c = true || true;
  12. return leaf();
  13. }
  14. function bar(f) {
  15. var a = f();
  16. return leaf(a);
  17. }
  18. bar(f1);
  19. bar(f2);
  20. bar(f2);
  21. var c = bar(f2);
  22. WScript.Echo(c);