Michael Holman 8 سال پیش
والد
کامیت
6e77240cbd
2فایلهای تغییر یافته به همراه18 افزوده شده و 0 حذف شده
  1. 13 0
      test/Optimizer/isarrbug.js
  2. 5 0
      test/Optimizer/rlexe.xml

+ 13 - 0
test/Optimizer/isarrbug.js

@@ -0,0 +1,13 @@
+//-------------------------------------------------------------------------------------------------------
+// Copyright (C) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
+//-------------------------------------------------------------------------------------------------------
+
+function foo(){
+    return Array.isArray(1);
+};
+
+let failed = foo();
+failed |= foo();
+failed |= foo();
+failed ? print("Fail") : print("Pass");

+ 5 - 0
test/Optimizer/rlexe.xml

@@ -25,6 +25,11 @@
       <files>bug1868543.js</files>
     </default>
   </test>
+  <test>
+    <default>
+      <files>isarrbug.js</files>
+    </default>
+  </test>
   <test>
     <default>
       <files>bug469.js</files>