NegativeZeroPow.js 638 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(){
  6. var a = -2;
  7. var ui16 = new Uint16Array(1);
  8. for(var __loopvar0 = 0; __loopvar0 < 3 && 1 < Math.pow(- ui16[0], a-- ); __loopvar0++) {
  9. WScript.Echo("blah");
  10. }
  11. };
  12. // generate profile
  13. test0();
  14. // run JITted code
  15. test0();