Index: test/webkit/fast/js/kde/crash-1.js |
diff --git a/test/webkit/declaration-in-block.js b/test/webkit/fast/js/kde/crash-1.js |
similarity index 90% |
copy from test/webkit/declaration-in-block.js |
copy to test/webkit/fast/js/kde/crash-1.js |
index 39c4fc06ce7958ba0d4c2f77e9faede8d67370d3..316ce513421c87c5c686b3ad5fa7818c90b899ba 100644 |
--- a/test/webkit/declaration-in-block.js |
+++ b/test/webkit/fast/js/kde/crash-1.js |
@@ -21,9 +21,12 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-description( |
-"This test checks that declarations in an if block can be seen outside it." |
-); |
- |
-if (0) { var b; } |
-var a = b; |
+description("KDE JS Test"); |
+// infinite recursion |
+try { |
+ var v = []; |
+ v[0] = v; |
+ v.toString(); |
+} catch (e) { |
+ debug("OK. Caught an exception."); |
+} |