diff --git a/implementation-contributed/javascriptcore/stress/bug-188298.js b/implementation-contributed/javascriptcore/stress/bug-188298.js new file mode 100644 index 0000000000000000000000000000000000000000..6691bff33ca7f315443c3eead862ec97496b774f --- /dev/null +++ b/implementation-contributed/javascriptcore/stress/bug-188298.js @@ -0,0 +1,12 @@ +// This test passes if it does not crash. + +function foo() { + if (1 < 2); + while (true) { + if (1 < 2) break; + } +} + +for (var i = 0; i < 10000; i++) + foo(); +