bug1469518.js 777 B

123456789101112131415161718192021222324252627282930
  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 shouldBailout = false;
  6. function test1() {
  7. var z1 = function () {
  8. };
  9. (function () {
  10. if (shouldBailout) {
  11. for (var yuijka = 0; yuijka < 6; ++yuijka) {
  12. ({ a1: 1 });
  13. }
  14. d;
  15. }
  16. })();
  17. (function () {
  18. `,${[z1]}`;
  19. })();
  20. }
  21. try{
  22. test1();
  23. test1();
  24. shouldBailout = true;
  25. test1();
  26. }
  27. catch(ex){
  28. WScript.Echo(ex.message);
  29. }