diff options
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 085cd5ffd0..788ecce1c5 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -7550,7 +7550,8 @@ public: private slots: void reviveFirstWeakReference() { - *resultPtr = weakRef->valueRef() && weakRef->isNullOrUndefined(); + // weakRef is not required to be undefined here. The gc can clear it later. + *resultPtr = weakRef->valueRef(); if (!*resultPtr) return; QV4::ExecutionEngine *v4 = qmlEngine(this)->handle(); |