bug12528802.js 619 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. var obj = { foo : function() {} };
  6. function bar(arg)
  7. {
  8. obj.foo.apply(obj, arguments);
  9. let local;
  10. let baz = function() { local; };
  11. }
  12. function test()
  13. {
  14. bar();
  15. }
  16. test();
  17. test();
  18. test();
  19. WScript.Echo("PASSED");