MissToGenerateStStSlotForJITLoopBody.js 706 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. function test0(i)
  6. {
  7. try{
  8. for (var j = 0; j < 20010; j++) {
  9. if (j > 20000)
  10. return 'j ' + i + ' j in the loop ' + i;
  11. else if (j > 30000)
  12. return ' test0 ' + j;
  13. }
  14. } catch(e){}
  15. }
  16. var ret = test0() + ' test StSlot generation';
  17. print('pass');