Title: [286881] trunk/JSTests
Revision
286881
Author
ysuz...@apple.com
Date
2021-12-10 15:03:37 -0800 (Fri, 10 Dec 2021)

Log Message

Unreviewed, we may not throw an stack overflow error

* stress/stack-overflow-in-custom-hasInstance.js:
(catch):

Modified Paths

Diff

Modified: trunk/JSTests/ChangeLog (286880 => 286881)


--- trunk/JSTests/ChangeLog	2021-12-10 23:02:33 UTC (rev 286880)
+++ trunk/JSTests/ChangeLog	2021-12-10 23:03:37 UTC (rev 286881)
@@ -1,3 +1,10 @@
+2021-12-10  Yusuke Suzuki  <ysuz...@apple.com>
+
+        Unreviewed, we may not throw an stack overflow error
+
+        * stress/stack-overflow-in-custom-hasInstance.js:
+        (catch):
+
 2021-12-08  Asumu Takikawa  <as...@igalia.com>
 
         Support WebAssembly.Memory imports in Wasm/ESM modules.

Modified: trunk/JSTests/stress/stack-overflow-in-custom-hasInstance.js (286880 => 286881)


--- trunk/JSTests/stress/stack-overflow-in-custom-hasInstance.js	2021-12-10 23:02:33 UTC (rev 286880)
+++ trunk/JSTests/stress/stack-overflow-in-custom-hasInstance.js	2021-12-10 23:03:37 UTC (rev 286881)
@@ -22,7 +22,6 @@
     ({}) instanceof fn;
 } catch (e) {
     exception = e;
+    if (exception != "RangeError: Maximum call stack size exceeded.")
+        throw "FAILED";
 }
-
-if (exception != "RangeError: Maximum call stack size exceeded.")
-    throw "FAILED";
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to