2
0

bug1062870.js 509 B

123456789101112131415
  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. var a = [];
  6. a[4294967294] = 8;
  7. try
  8. {
  9. a.splice(4294967295,0,1); //length grows by 1
  10. }
  11. catch(e)
  12. {
  13. WScript.Echo("PASS");
  14. }