622043.js 921 B

123456789101112131415161718192021222324252627282930313233343536
  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. var runningJITtedCode = false;
  6. function test0() {
  7. var func0 = function () {
  8. var v3877 = runningJITtedCode;
  9. function v3878() {
  10. function v3879() {
  11. return v3879;
  12. }
  13. if (v3877)
  14. return v3879();
  15. }
  16. var v3880 = v3878();
  17. }
  18. var func2 = function () {
  19. func0();
  20. }
  21. func0.call(func2.call());
  22. };
  23. // generate profile
  24. test0();
  25. // run JITted code
  26. runningJITtedCode = true;
  27. test0();
  28. WScript.Echo('pass');