defer5.js 601 B

123456789101112131415161718
  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. // Flags: -version:5 -ForceDeferParse
  6. function test()
  7. {
  8. function foo() {
  9. // Bar is a let variable being used here before it's been assigned to
  10. bar;
  11. }
  12. foo();
  13. let bar = this;
  14. }
  15. test();