bug17785360.js 740 B

12345678910111213141516171819202122232425
  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. arr = new Uint8Array(0x40000);
  6. var obj = {x : 1.1};
  7. function test2()
  8. {
  9. return obj.x;
  10. }
  11. function test()
  12. {
  13. function test1()
  14. {
  15. for(var i=0; i < arr.length; i++)
  16. {
  17. arr[i] = arr[i+1] = arr[i+2] = Math.floor(test2() / 4294967295 * 128), arr[i + 3] = 255;
  18. }
  19. }
  20. test1(arr);
  21. }
  22. test();
  23. print("passed");