# HG changeset patch # User Atul Varma # Date 1269234711 25200 # Node ID c4181cc0771d40640942eade9c0df98d466d29df # Parent 351819baecd17c28020969f9ed3c65afb3133a65 Fixed a bug whereby pydermonkey.Object instances couldn't be passed from python-space into JS-space. I think. diff -r 351819baecd1 -r c4181cc0771d pydertron.py --- 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