withSplitScope.js 604 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 foo()
  6. {
  7. (function bar(a =
  8. (function()
  9. {
  10. with (1)
  11. {
  12. bar;
  13. }
  14. })()
  15. ){})();
  16. }
  17. foo();
  18. foo();
  19. foo();
  20. WScript.Echo("Pass");