Index: LayoutTests/fast/events/window-onerror-06.html |
diff --git a/LayoutTests/fast/events/window-onerror-06.html b/LayoutTests/fast/events/window-onerror-06.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..943bfd9d482dc78310777731a901fd439899e84d |
--- /dev/null |
+++ b/LayoutTests/fast/events/window-onerror-06.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <script src="resources/onerror-test.js"></script> |
+ <script> |
+ window.onerror = function (message) { |
+ log("Called window.onerror: " + message); |
+ throwException("Nested exception."); |
+ }; |
+ function test() { |
+ throwException("Original exception."); |
+ } |
+ </script> |
+</head> |
+<body> |
+ <p>This test should trigger 'window.onerror' only once, without diving into horrible recursion.</p> |
+ <script> |
+ test(); |
+ </script> |
+</body> |
+</html> |