From b086faba7e47714c679e6058df250cc8a99505a5 Mon Sep 17 00:00:00 2001 From: "bob%bclary.com" Date: Sat, 2 Jul 2005 08:56:41 +0000 Subject: [PATCH] bug 299209, since new behavior is Syntax Error instead of crash, change test to eval expression and catch eval error. git-svn-id: svn://10.0.0.236/trunk@175518 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/tests/js1_5/Regress/regress-299209.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mozilla/js/tests/js1_5/Regress/regress-299209.js b/mozilla/js/tests/js1_5/Regress/regress-299209.js index b51abfa10d6..1515a8e99d6 100755 --- a/mozilla/js/tests/js1_5/Regress/regress-299209.js +++ b/mozilla/js/tests/js1_5/Regress/regress-299209.js @@ -45,7 +45,13 @@ printStatus (summary); for (a = 0; a <= 10000; a++) { - function(){("");} + try + { + eval('function(){("");}'); + } + catch(e) + { + } } reportCompare(expect, actual, summary);