stackArgsLenConstOpt.js 669 B

12345678910111213141516171819202122
  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 x_min() {
  6. if (arguments.length < 3) {
  7. if (arguments[0] < arguments[1]) return arguments[0];
  8. else return arguments[1];
  9. }
  10. return 1;
  11. }
  12. function test0() {
  13. x_min(15,2);
  14. }
  15. for (var i = 0; i < 100; i++) {
  16. test0();
  17. }
  18. WScript.Echo("pass");