Mercurial > pydertron
diff pydertron.py @ 26:c4181cc0771d
Fixed a bug whereby pydermonkey.Object instances couldn't be passed from python-space into JS-space. I think.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 21 Mar 2010 22:11:51 -0700 |
parents | c2c369402a2e |
children | 0b00162939ae |
line wrap: on
line diff
--- a/pydertron.py Sat Sep 12 12:43:45 2009 -0700 +++ b/pydertron.py Sun Mar 21 22:11:51 2010 -0700 @@ -445,7 +445,8 @@ a TypeError is raised. """ - if (isinstance(value, (int, basestring, float, bool)) or + if (isinstance(value, (int, basestring, float, bool, + pydermonkey.Object)) or value is pydermonkey.undefined or value is None): return value