inliningWithArguments.js 635 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. var test = function() {
  6. function getArgs() {
  7. return arguments;
  8. }
  9. var args = getArgs(2, 3);
  10. if(args.length === 2)
  11. {
  12. WScript.Echo("PASSED");
  13. }
  14. else
  15. {
  16. WScript.Echo(args.length);
  17. }
  18. }
  19. test();