bug14057294.js 607 B

12345678910111213141516171819202122
  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 foo(a, b = (function() {a;})())
  6. {
  7. for (var ii = 0; ii < 200; ++ii)
  8. {
  9. var c, d = null;
  10. function bar()
  11. {
  12. c;
  13. d;
  14. };
  15. bar();
  16. }
  17. };
  18. foo();
  19. WScript.Echo("Pass")