InlineArrayPopWithIntConstSrc.js 732 B

1234567891011121314151617181920212223
  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 func0 = function(argArr2){
  7. if((check ? (argArr2.pop()) : WScript.Echo("false"))) {
  8. }
  9. }
  10. var check = true;
  11. func0([1]); // func0 will be inlined while jitting test0()
  12. check = false;
  13. func0(1); // func0 will be inlined while jitting test0()
  14. };
  15. // generate profile
  16. test0();
  17. // Run Simple JIT
  18. test0();