bug11370283.js 570 B

12345678910111213141516
  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. //Switches: -bgjit- -lic:1
  6. var a = Array(10).fill();
  7. function foo() {
  8. for (var k = 0; k < a.length; ++k) {
  9. if (k == 0) {
  10. k += 1;
  11. }
  12. a[k];
  13. }
  14. }
  15. foo();
  16. print("passed");