From 267f1d92027784acdedf6b74f9864c3b3ea01f14 Mon Sep 17 00:00:00 2001 From: "pschwartau%netscape.com" Date: Sat, 10 Nov 2001 02:46:24 +0000 Subject: [PATCH] Adding another case to test. --- js/tests/js1_5/Regress/regress-104077.js | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/js/tests/js1_5/Regress/regress-104077.js b/js/tests/js1_5/Regress/regress-104077.js index f3f8f74ab07c..099b66c7c87d 100644 --- a/js/tests/js1_5/Regress/regress-104077.js +++ b/js/tests/js1_5/Regress/regress-104077.js @@ -63,6 +63,34 @@ captureThis(); +function tryThis() +{ + var sum = 4 ; + var i = 0; + + while (sum < 10) + { + try + { + sum += 1; + i += 1; + } + finally + { + print("In finally case of testThis() function"); + } + } + return i; +} + + +status = inSection(2); +actual = tryThis(); +expect = 6; +captureThis(); + + + //----------------------------------------------------------------------------- test(); //-----------------------------------------------------------------------------