From http://bugzilla.mozilla.org/show_bug.cgi?id=225831#c22 :
Fix for bug 225831
The patch adds new parse tree node type, Token.RETURN_POPV, to return the value
stored by the last Token.POPV and updates interpreter/optimizer to support POPV
for functions and the new nodes. With this it in place NodeTransformer changes
code to return from finally to first store via POPV the result of the original
return, then execute finally and then return the stored value fixing bug
225831.
The patch does not depend on changes to avoid using temporaries during
expression evaluation as I initially expected but it does depend on the change
to use recursion of NodeTransformer which is committed on the bug branch so log
it here.
4 files changed