arrayctor.js 534 B

1234567891011121314
  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 f(x, y) {
  6. return new Array(x, y);
  7. }
  8. f(1, 2);
  9. f(2, 3);
  10. Array = function (x, y) { WScript.Echo('arg: ' + x + ', ' + y); }
  11. f(3, 4);
  12. f(5, 6);