Changeset [b498a981063596b85e4d9e05c5d5354e691d8445] by lericson

October 5th, 2010 @ 06:54 AM

Allow setting the filename and lineno in execute()

This should not only make tracebacks better, but also allow Python
to open the JavaScript file so as to show the correct line (of
course, given the filename can be found.)
http://github.com/davisp/python-spidermonkey/commit/b498a981063596b...

Committed by lericson

  • M spidermonkey/context.c
  • M spidermonkey/error.c
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.