meg-gupta 8 rokov pred
rodič
commit
873ef52c68
3 zmenil súbory, kde vykonal 66 pridanie a 0 odobranie
  1. 22 0
      test/EH/helperlabelbug.js
  2. 34 0
      test/EH/helperlabelbug2.js
  3. 10 0
      test/EH/rlexe.xml

+ 22 - 0
test/EH/helperlabelbug.js

@@ -0,0 +1,22 @@
+//-------------------------------------------------------------------------------------------------------
+// Copyright (C) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
+//-------------------------------------------------------------------------------------------------------
+
+function test0() {
+  var i32 = new Int32Array();
+  if (i32[1988493697]) {
+    try {
+      obj0();
+    } catch (ex) {
+    } finally {
+    }
+    obj0;
+  } else {
+    var uniqobj6 = { lf0: {} };
+  }
+}
+test0();
+test0();
+test0();
+WScript.Echo("Passed");

+ 34 - 0
test/EH/helperlabelbug2.js

@@ -0,0 +1,34 @@
+//-------------------------------------------------------------------------------------------------------
+// Copyright (C) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
+//-------------------------------------------------------------------------------------------------------
+
+var __counter = 0;
+function test0() {
+  __counter++;
+  var obj0 = {};
+  var arrObj0 = {};
+  var func0 = function () {
+  };
+  var func1 = function () {
+  };
+  var func2 = function () {
+    for (; func1(ui16[218361093] >= 0 ? ui16[218361093] : 0); func1((false ? arrObj0 : undefined))) {
+    }
+  };
+  obj0.method1 = func0;
+  arrObj0.method1 = func2;
+  var ui16 = new Uint16Array();
+  var uniqobj1 = [
+    obj0,
+    arrObj0
+  ];
+  var uniqobj2 = uniqobj1[__counter % uniqobj1.length];
+  uniqobj2.method1();
+  for (var _strvar5 of ui16) {
+  }
+}
+test0();
+test0();
+test0();
+WScript.Echo("Passed");

+ 10 - 0
test/EH/rlexe.xml

@@ -160,4 +160,14 @@
       <files>ehinlinearmbug.js</files>
     </default>
   </test>
+  <test>
+    <default>
+      <files>helperlabelbug.js</files>
+    </default>
+  </test>
+  <test>
+    <default>
+      <files>helperlabelbug2.js</files>
+  </default>
+  </test>
 </regress-exe>