#4 ✓resolved
Paul J. Davis

cx.execute("5") throwing errors

Reported by Paul J. Davis | March 25th, 2009 @ 07:05 PM

MD formatting fail.

>>> import spidermonkey
>>> rt = spidermonkey.R
>>> rt = spidermonkey.Runtime()
>>> cx = rt.new_context()
>>> cx.execute("5")

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
  File "<JavaScript>", line 1, in SyntaxError: illegal character
JSError: Error executing JavaScript.

I think this is an effect of me botching the Python string -> UTF-16 conversion and passing the JS VM a bad script.

Originally reported by Sean Neilan in email.

Comments and changes to this ticket

  • Paul J. Davis

    Paul J. Davis May 9th, 2009 @ 07:57 PM

    • State changed from “new” to “resolved”

    I just tried this on Python 2.5 (vendor and port version) and Python 2.6 on 10.5 and the bug is gone. I'm resolving for now. If someone sees this feel free to reopen.

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