Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for global property handlers.
If you want to be able to global properties using some sort of active logic you can now pass an object that has __getitem__ and __setitem__ defined to Runtime.new_context(). Something like: >>> rt = spidermonkey.Runtime() >>> cx = rt.new_context({"foo": "bar"}) >>> cx.execute("foo;") 'bar' [#9 state:resolved]
- Loading branch information
Paul Davis
committed
May 10, 2009
1 parent
786f808
commit 4d97105
Showing
4 changed files
with
224 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters