spill.js 824 B

123456789101112131415161718192021222324252627
  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 test0() {
  6. var obj0 = {};
  7. var func1 = function (argFunc1, argMath2) {
  8. for (var __loopvar4 = 0; __loopvar4 < 3;) {
  9. __loopvar4++;
  10. argMath2 ^= 1;
  11. obj0.prop1 = (this.prop1++);
  12. __loopvar4 = (this.prop1++);
  13. }
  14. }
  15. func1(1, true, func1(1, 1, 1));
  16. func1.call(obj0);
  17. };
  18. // generate profile
  19. test0();
  20. test0();
  21. test0();
  22. test0();
  23. WScript.Echo('pass');