diff -r ef0373b55136 -r 758a864f9613 src/script/api/qscriptvalue_p.h --- a/src/script/api/qscriptvalue_p.h Fri Sep 17 08:34:18 2010 +0300 +++ b/src/script/api/qscriptvalue_p.h Mon Oct 04 01:19:32 2010 +0300 @@ -103,7 +103,7 @@ qint64 objectId() { - if ( (type == JavaScriptCore) && (engine) ) + if ( (type == JavaScriptCore) && (engine) && jscValue.isCell() ) return (qint64)jscValue.asCell(); else return -1;