Changeset [e75f991342e41d62647aa5f557eaff784598ff4b] by Paul Davis

May 18th, 2009 @ 07:30 PM

Fix integer property lookups.

>>> rt = spidermonkey.Runtime()
>>> cx = rt.new_context()
>>> cx.add_global("bang", [2, "got me!"])
>>> assert cx.execute("bang[1];") == "got me!"

Thanks to spahl for the report and fix.

[#16 state:resolved]

Committed by Paul Davis

  • M spidermonkey/pyobject.c
  • M tests/
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.