Commits

Author Commit Message Labels Comments Date
Jason R. Coombs
Started work on supporting building on Windows
Paul J. Davis
Make this build on 10.6 I had to do some hackery to get this building on 10.6 with Homebrew. I mostly hacked together a fake nspr.pc and dropped it in [1] so that the pkgconfig stuff in setup.py would work. There's a copy of this file in the "extra" directory in this repo. I also added a patch for the va_copy like MacPorts does. If anyone would like to tear out the embedded copy of Spidermonkey that this package ships w…
Ludvig Ericson
Only set exception after function call if not set
Ludvig Ericson
Differentiate error for applying and constructing
Ludvig Ericson
Allow toggling strict mode
Ludvig Ericson
Don't raise an exception on JavaScript warnings
Ludvig Ericson
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.)
Paul J. Davis
More update awesome.
Paul J. Davis
Still converting object.cpp
Paul J. Davis
More rewriting. Changed the implementation of PyXDR<T> on advice from Mark Hammond.
Paul J. Davis
More RAII plzkthx. Moving towards implementing simplifications using C++ RAII awesomeness.
Paul J. Davis
C++ fu has atrophied.
Paul J. Davis
Finishing the moving. Next up is RAII
Paul J. Davis
Reorganization. C -> C++ Moving things around and getting ready for changing the implementation from strict C to C++. For the moment I'm removing the resource restriction code because it didn't really help that much and was just causing me headaches.
Paul J. Davis
Removed cruft in the source directory. Fixed MANIFEST.in with a pointer from Roberto.
Paul J. Davis
Updated Gento package names. Thanks Scott T Silliman
Paul J. Davis
Pushing fix for [#21] to PyPI
Paul J. Davis
Fix segfaults when large numbers of contexts. Turns out that I had an error in my logic about how to reference count the python context object. I removed references to it from Python objects that are wrapped in the JavaScript VM. I'm more than 50% certain that this is correct as when the Python context dies, it'll destroy the JSContext* and along with it all references to Python objects that need refernces to the Context. [#21 state:resolved…
Paul J. Davis
Bumping the version before pushing to PyPi.
Paul J. Davis
Filter Python access with a function. JavaScript requests for data from the Python VM can now be filtered by specifying an access callback function on the Context instance. See the README or test-access.py tests for API usage. Thanks to Richard Boulton for the initial patch.
Paul J. Davis
Make the lighthouseapp.com link more prominent in the README.
Paul Davis
Fixes broken memory limit test. Keiji Costantini reported the test as failing on Gentoo on amd64. I imagine the 64 bit might've had something to do with memory requirements for start up as it seems just enough to get a working context on my 32 bit machine. I upped the limit and memory usage of the test. Thanks Keiji.
Paul J. Davis
Remove spurious debugging statements.
Paul J. Davis
[#17] Fix context properties when value is `null`. Thanks to Spahl for the report, patch, and test, and general awesomeness at being so thorough. [#17 state:resolved]
Paul Davis
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]
Paul Davis
Fixes global handling of "function foo() {}" JavaScript acts a bit odd in this case in that the body of 'foo' is passed to JS_Class.add_property but not JS_Class.set_property. For now I added an add_prop method that special cases when the passed in value is a function and delegates to set_prop. While I was at it, I went ahead and added support for deleting global properties as well. If your global handler has __delitem__ defined, it will no…
Paul Davis
Updated the README for pkg-config dependancy. Thanks to Mike West [#5]
Paul Davis
Fix for time limit constraints. The root bug I think has to do with conversions between integral types. I changed the Context.max_time method to be a bit less clever which will hopefully fix things. I also updated the test_exceeds_time to fail more gracefully as per suggestion. Thanks to Mike West [#15 state:open]
Paul Davis
Test for invalid octal. I added a test that catches the JSError generated by invalid octal. Ricardo, can you confirm whether this test passes or fails? You can run the tests like such: $ python setup.py test [#12 state:open]
Paul Davis
Updated the README. Thanks Mark Lee. [#12]
  1. Prev
  2. Next