Title: [230306] trunk/JSTests
Revision
230306
Author
ryanhad...@apple.com
Date
2018-04-05 10:37:49 -0700 (Thu, 05 Apr 2018)

Log Message

Fix testcase (missing try/catch).
https://bugs.webkit.org/show_bug.cgi?id=183657

Unreviewed.

* stress/large-unshift-splice.js

Patch by Robin Morisset <rmoris...@apple.com> on 2018-04-05

Modified Paths

Diff

Modified: trunk/JSTests/ChangeLog (230305 => 230306)


--- trunk/JSTests/ChangeLog	2018-04-05 17:32:08 UTC (rev 230305)
+++ trunk/JSTests/ChangeLog	2018-04-05 17:37:49 UTC (rev 230306)
@@ -1,3 +1,12 @@
+2018-04-05  Robin Morisset  <rmoris...@apple.com>
+
+        Fix testcase (missing try/catch).
+        https://bugs.webkit.org/show_bug.cgi?id=183657
+
+        Unreviewed.
+
+        * stress/large-unshift-splice.js
+
 2018-04-04  Filip Pizlo  <fpi...@apple.com>
 
         REGRESSION(r222563): removed DoubleReal type check causes tons of crashes because CSE has never known how to handle SaneChain

Modified: trunk/JSTests/stress/large-unshift-splice.js (230305 => 230306)


--- trunk/JSTests/stress/large-unshift-splice.js	2018-04-05 17:32:08 UTC (rev 230305)
+++ trunk/JSTests/stress/large-unshift-splice.js	2018-04-05 17:37:49 UTC (rev 230306)
@@ -9,8 +9,10 @@
     return a;
 }
 
-let ARRAY_LENGTH = 0x10000000;
-let a = make_contig_arr(ARRAY_LENGTH);
-let b = make_contig_arr(0xff00);
-b.unshift(a.length-0x10000, 0);
-Array.prototype.splice.apply(a, b);
+try {
+    let ARRAY_LENGTH = 0x10000000;
+    let a = make_contig_arr(ARRAY_LENGTH);
+    let b = make_contig_arr(0xff00);
+    b.unshift(a.length-0x10000, 0);
+    Array.prototype.splice.apply(a, b);
+} catch (e) {}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to