• Kent Hansen's avatar
    Make QVariant conversion for JS null type symmetric · d96d89c6
    Kent Hansen authored
    If you pass (void*)0 to QJSEngine::toScriptValue(), or you pass a
    QVariant of type QMetaType::VoidStar containing a 0 value, you get
    back a QJSValue of type null (isNull() returns true); that's fine.
    
    However, if you called QJSValue::toVariant() on a JS null value, you
    would get back an invalid QVariant. The expected result is a
    QVariant of type QMetaType::VoidStar containing a 0 value. This
    makes the conversion of the JS null type symmetric and avoids loss
    of data.
    
    Change-Id: Ifa6e788152118f80adf9c2d7be1283f053b44294
    Reviewed-by: default avatarJędrzej Nowacki <jedrzej.nowacki@nokia.com>
    Reviewed-by: default avatarSimon Hausmann <simon.hausmann@nokia.com>
    d96d89c6
Name
Last commit
Last update
..
animation Loading commit data...
debugger Loading commit data...
parserstress Loading commit data...
qjsengine Loading commit data...
qjsvalue Loading commit data...
qjsvalueiterator Loading commit data...
qmlmin Loading commit data...
qmlplugindump Loading commit data...
qqmlcomponent Loading commit data...
qqmlconsole Loading commit data...
qqmlcontext Loading commit data...
qqmlcpputils Loading commit data...
qqmlecmascript Loading commit data...
qqmlengine Loading commit data...
qqmlerror Loading commit data...
qqmlexpression Loading commit data...
qqmlimageprovider Loading commit data...
qqmlincubator Loading commit data...
qqmlinfo Loading commit data...
qqmlinstruction Loading commit data...
qqmllanguage Loading commit data...
qqmllistreference Loading commit data...
qqmllocale Loading commit data...
qqmlmetaobject Loading commit data...
qqmlmetatype Loading commit data...
qqmlmoduleplugin Loading commit data...
qqmlparser Loading commit data...
qqmlpixmapcache/data Loading commit data...
qqmlproperty Loading commit data...
qqmlpropertycache Loading commit data...
qqmlpropertymap Loading commit data...
qqmlqt Loading commit data...
qqmlsqldatabase Loading commit data...
qqmltranslation Loading commit data...
qqmlvaluetypes Loading commit data...
qqmlxmlhttprequest Loading commit data...
qquickbinding Loading commit data...
qquickchangeset Loading commit data...
qquickconnection Loading commit data...
qquickfolderlistmodel Loading commit data...
qquicklistcompositor Loading commit data...
qquicklistmodel Loading commit data...
qquickworkerscript Loading commit data...
v4 Loading commit data...
qml.pro Loading commit data...
runall.sh Loading commit data...