Closed Bug 217591 Opened 21 years ago Closed 21 years ago

finally block in JavaScript is not executed if try block is empty

Categories

(Rhino Graveyard :: Core, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 214945

People

(Reporter: merten.schumann, Assigned: norrisboyd)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: 

the following javascript

try
{
}
finally
{
 System.out.println("finally I'm done")
}

doesn't print any output
same happens if there's only a comment in try block
works if there's a real expression to be executed in try block

really a minor problem but often use such code snippets as a startup before I
fill in my code ...

Reproducible: Always

Steps to Reproduce:
1.
2.
3.




I don't know if this is a parser/code generator problem or if this is a feature
in JavaScript.

*** This bug has been marked as a duplicate of 214945 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Marking Verified Duplicate.

Merten: thank you for this report. This bug was fixed a few days ago
(2003-08-04), and should no longer be affecting the most recent source.

Please report back if this is not the case; thanks -
Status: RESOLVED → VERIFIED
I'm sorry, when I searched for already know bugs I've probably only searched for
new or open bugs, so I haven't found 214945.

I tried it with the latest built, you're right, the bug is fixed! :)

Next time I'll use bugzilla the right way.
Trageting as resolved against 1.5R5
Target Milestone: --- → 1.5R5
You need to log in before you can comment on or make changes to this bug.