#36 new
j1m

syntax errors not raised properly to Python

Reported by j1m | January 23rd, 2011 @ 12:38 PM

Run time errors get raised very nicely, syntax errors, not so much.

Comments and changes to this ticket

  • j1m

    j1m February 15th, 2011 @ 05:18 PM

    I miss-diagnosed this issue.

    The issue is that if Javascript calls Python, which calls context
    execute to call JavaScript code that raises an error, the original
    exception is lost. The context execute method raises a run time error
    with the message "Script execution failed and no exception was set",
    rather than the progonal error.

    I eventually came up with a hack arund that involved wrapping a
    JavaScript try/catch around the code being executed.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Python/JavaScript bridge module, making use of Mozilla's spidermonkey JavaScript implementation. Allows implementation of JavaScript classes, objects and functions in Python, and evaluation and calling of JavaScript scripts and functions respectively. Borrows heavily from Claes Jacobssen's Javascript Perl module, in turn based on Mozilla's 'PerlConnect' Perl binding.

People watching this ticket

Pages