2
0

array_fastinit.js 795 B

1234567891011121314151617181920
  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 InitPolymorphicFunctionArray(args) {
  6. }
  7. function test0() {
  8. var IntArr2 = new Array();
  9. IntArr2[5] = 4294967295;
  10. IntArr2[0] = 2.53425738368173E+18;
  11. IntArr2[IntArr2.length] = 3;
  12. function bar0() {
  13. }
  14. InitPolymorphicFunctionArray(new Array(bar0));;
  15. WScript.Echo(IntArr2.slice(0, 23).reduce(function (prev, curr) { { return prev + curr; } }));
  16. };
  17. test0();
  18. test0();
  19. test0();