CrossContextSpreadFunction.js 559 B

12345678910111213141516
  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 foo()
  6. {
  7. for(var i = 0; i < arguments.length;i++)
  8. {
  9. if(arguments[i] != i+1)
  10. {
  11. print("FAIL");
  12. }
  13. }
  14. print("PASS");
  15. }