mic1msjrc1.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. while (undefined) {
  7. if (undefined) {
  8. continue;
  9. }
  10. try {
  11. continue;
  12. } catch (ex) {
  13. } finally {
  14. break;
  15. }
  16. }
  17. }
  18. test0();
  19. test0();
  20. test0();
  21. function test1() {
  22. try {
  23. LABEL2:
  24. while (h != d) {
  25. try {
  26. continue;
  27. } catch (ex) {
  28. continue;
  29. } finally {
  30. return -1839801917;
  31. }
  32. }
  33. } catch (ex) {
  34. }
  35. }
  36. test1();
  37. test1();
  38. test1();
  39. var _oo1obj = undefined;
  40. function test2() {
  41. var _oo1obj = function () {
  42. var _oo1obj = {
  43. prop1 : []
  44. };
  45. for (; ([])[1]; ) {
  46. }
  47. _oo1obj.f1 = undefined;
  48. }();
  49. }
  50. test2();
  51. test2();
  52. test2();
  53. function test3() {
  54. var IntArr1 = Array(1);
  55. for (var _ of IntArr1) {
  56. if (this || 1) {
  57. return 1;
  58. }
  59. }
  60. }
  61. test3();
  62. test3();
  63. test3();
  64. var ary = Array();
  65. var func4 = function () {
  66. for (var _ of ary) {
  67. if (undefined || func4) {
  68. break;
  69. }
  70. }
  71. };
  72. func4();
  73. func4();
  74. func4();
  75. console.log('PASSED');