bug41530.js 727 B

1234567891011121314151617181920212223242526
  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 opt(arr) {
  6. if (arr.length <= 15)
  7. return;
  8. let j = 0;
  9. for (let i = 0; i < 2; i++) {
  10. arr[j] = 0x1234; // (a)
  11. j += 0x100000;
  12. j + 0x7ffffff0;
  13. }
  14. }
  15. function main() {
  16. for (let i = 0; i < 0x10000; i++) {
  17. opt(new Uint32Array(100));
  18. }
  19. }
  20. main();
  21. WScript.Echo('pass');