infinite.js 632 B

12345678910111213141516171819202122232425262728293031
  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 bar(p)
  6. {
  7. if (!p)
  8. return;
  9. while (1) {}
  10. }
  11. bar(0);
  12. bar(0);
  13. bar(0);
  14. bar(0);
  15. bar(0);
  16. bar(0);
  17. function foo(p)
  18. {
  19. if ((p | 0) == 91)
  20. while (1) p = 91;
  21. return p;
  22. }
  23. foo(0);
  24. foo(0);
  25. foo(0);
  26. foo(0);
  27. foo(0);
  28. foo(0);
  29. print("Pass");