diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/script/api/qscriptvalue_p.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/script/api/qscriptvalue_p.h b/src/script/api/qscriptvalue_p.h index 7c1d538..71bff07 100644 --- a/src/script/api/qscriptvalue_p.h +++ b/src/script/api/qscriptvalue_p.h @@ -144,8 +144,11 @@ public: { // if type is not developed in js engine there is no // need to invalidate the object - if (isJSC()) valid=false; - engine=0; + if (isJSC()) { + valid = false; + jscValue = JSC::JSValue(); + } + engine = 0; } qint64 objectId() |