I find it is because continuation does not support function call/apply yet in rhino bug 258844. So FOM_Cocoon.suicide() does not work.

Rice

On 9/29/06, Rice Yeh <[EMAIL PROTECTED]> wrote:
Have a new trace by printing out each step, I find FOM_Cocoon.suicide() does get called but the _javascript_ intepreter just does not exit. Does anyone know what is going wrong?

Rice


On 9/29/06, Rice Yeh <[EMAIL PROTECTED]> wrote:
Hi,
  By reading mail archives, I know there are catch (break | continue | return) stuff. Is it still supported. I cannot find any examples about them in trunk. In the http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109528520325331&w=2, it seems telling me that rhino's 'finally' now support catch (break) function. How about the other twos catch(continue | return). I have written a section of code to use try-finally to release resource usage. But FOM_Cocoon.suicide() is never called, so showForm() does not suspend the javascipt interpreter. I use _javascript_ debugger to trace the code and find that the execution just stays on 'return this.sendFormAndWait(uri, viewdata, ttl);' in Form.prototype.showForm many times. It just does not go into sendFormAndWait(). I just cannot find any documents about these things.

Rice





Reply via email to