bug8159763.js 603 B

12345678910111213141516171819
  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 test0() {
  6. var IntArr0 = [];
  7. v5 = IntArr0.length;
  8. for (var i = 10; i < v5; i++) {
  9. IntArr0[i] = 0.5;
  10. }
  11. return i;
  12. }
  13. test0();
  14. if (test0() !== 10) {
  15. print("FAILED");
  16. } else {
  17. print("PASSED");
  18. }