jitLoopBody.js 608 B

123456789101112131415
  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 o = { p: 1, q: 2 };
  7. var sum = 0;
  8. for(var i = 0; i < 1; ++i)
  9. if(i !== 0)
  10. for(var j in o)
  11. sum += o[j];
  12. return sum;
  13. }
  14. WScript.Echo("test0: " + test0());