copy-prop-stack-slot.js 877 B

1234567891011121314151617181920212223242526
  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. WScript.LoadScriptFile('copy-prop-stack-slot-test-framework.js');
  6. var tc=new TestCase();
  7. tc.id="38";
  8. tc.desc="Enumerate arguments";
  9. tc.test=function(){
  10. var actualContent = "";
  11. var actualIndex = "";
  12. function testArgument() {
  13. for (var a in arguments) {
  14. actualContent += arguments[a];
  15. actualIndex += a;
  16. }
  17. }
  18. testArgument(12,13,14,15);
  19. WScript.Echo(actualContent);
  20. WScript.Echo(actualIndex);
  21. }
  22. tc.AddTest();
  23. Run();