Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

cx.execute("5") throwing errors

#4

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>
    cx.execute("5")
  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.

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

State: resolved
Milestone: none
Assigned to: Paul J. Davis Paul J. Davis

Activity

  1. Paul J. Davis
    Paul J. Davis
    • 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.

    May 9th, 2009 @ 07:57 PM

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.