funcname_escape.js 625 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 test()
  6. {
  7. var i = 0;
  8. function f1()
  9. {
  10. if (i == 0)
  11. {
  12. i++;
  13. return f1();
  14. }
  15. return i;
  16. }
  17. return f1;
  18. }
  19. WScript.Echo((test())());
  20. WScript.Echo((test())());