closure-1129602.js 745 B

123456789101112131415161718192021222324
  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 test0() {
  6. var loopInvariant = 2;
  7. var func2 = function () {
  8. function func5() {
  9. }
  10. loopInvariant;
  11. {
  12. function __f() {
  13. WScript.Echo('pass');
  14. }
  15. function __g() {
  16. __f();
  17. }
  18. __g();
  19. }
  20. };
  21. func2();
  22. }
  23. test0();