InlineFunctionParameterWithInfiniteLoop.js 498 B

123456789101112131415
  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(o) {if(!o)for(;;);}
  6. function baz(a){}
  7. function foo() {baz(bar({}))};
  8. foo();
  9. foo();
  10. print("pass");