• 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
..
ftw Loading commit data...
parser Loading commit data...
rewriter Loading commit data...
v4 Loading commit data...
v8 Loading commit data...
qlistmodelinterface.cpp Loading commit data...
qlistmodelinterface_p.h Loading commit data...
qml.pri Loading commit data...
qqml.h Loading commit data...
qqmlabstractbinding.cpp Loading commit data...
qqmlabstractbinding_p.h Loading commit data...
qqmlabstractexpression.cpp Loading commit data...
qqmlabstractexpression_p.h Loading commit data...
qqmlaccessors.cpp Loading commit data...
qqmlaccessors_p.h Loading commit data...
qqmlbinding.cpp Loading commit data...
qqmlbinding_p.h Loading commit data...
qqmlboundsignal.cpp Loading commit data...
qqmlboundsignal_p.h Loading commit data...
qqmlcleanup.cpp Loading commit data...
qqmlcleanup_p.h Loading commit data...
qqmlcompileddata.cpp Loading commit data...
qqmlcompiler.cpp Loading commit data...
qqmlcompiler_p.h Loading commit data...
qqmlcomponent.cpp Loading commit data...
qqmlcomponent.h Loading commit data...
qqmlcomponent_p.h Loading commit data...
qqmlcomponentattached_p.h Loading commit data...
qqmlcontext.cpp Loading commit data...
qqmlcontext.h Loading commit data...
qqmlcontext_p.h Loading commit data...
qqmlcustomparser.cpp Loading commit data...
qqmlcustomparser_p.h Loading commit data...
qqmlcustomparser_p_p.h Loading commit data...
qqmldata_p.h Loading commit data...
qqmldirparser.cpp Loading commit data...
qqmldirparser_p.h Loading commit data...
qqmlengine.cpp Loading commit data...
qqmlengine.h Loading commit data...
qqmlengine_p.h Loading commit data...
qqmlerror.cpp Loading commit data...
qqmlerror.h Loading commit data...
qqmlexpression.cpp Loading commit data...
qqmlexpression.h Loading commit data...
qqmlexpression_p.h Loading commit data...
qqmlextensioninterface.h Loading commit data...
qqmlextensionplugin.cpp Loading commit data...
qqmlextensionplugin.h Loading commit data...
qqmlglobal_p.h Loading commit data...
qqmlguard_p.h Loading commit data...
qqmlimageprovider.cpp Loading commit data...
qqmlimageprovider.h Loading commit data...
qqmlimport.cpp Loading commit data...
qqmlimport_p.h Loading commit data...
qqmlincubator.cpp Loading commit data...
qqmlincubator.h Loading commit data...
qqmlincubator_p.h Loading commit data...
qqmlinfo.cpp Loading commit data...
qqmlinfo.h Loading commit data...
qqmlinstruction.cpp Loading commit data...
qqmlinstruction_p.h Loading commit data...
qqmlintegercache.cpp Loading commit data...
qqmlintegercache_p.h Loading commit data...
qqmljavascriptexpression.cpp Loading commit data...
qqmljavascriptexpression_p.h Loading commit data...
qqmllist.cpp Loading commit data...
qqmllist.h Loading commit data...
qqmllist_p.h Loading commit data...
qqmllocale.cpp Loading commit data...
qqmllocale_p.h Loading commit data...
qqmlmetatype.cpp Loading commit data...
qqmlmetatype_p.h Loading commit data...
qqmlnetworkaccessmanagerfactory.cpp Loading commit data...
qqmlnetworkaccessmanagerfactory.h Loading commit data...
qqmlnotifier.cpp Loading commit data...
qqmlnotifier_p.h Loading commit data...
qqmlnullablevalue_p_p.h Loading commit data...
qqmlopenmetaobject.cpp Loading commit data...
qqmlopenmetaobject_p.h Loading commit data...
qqmlparserstatus.cpp Loading commit data...
qqmlparserstatus.h Loading commit data...
qqmlprivate.h Loading commit data...
qqmlproperty.cpp Loading commit data...
qqmlproperty.h Loading commit data...
qqmlproperty_p.h Loading commit data...
qqmlpropertycache.cpp Loading commit data...
qqmlpropertycache_p.h Loading commit data...
qqmlpropertyvalueinterceptor.cpp Loading commit data...
qqmlpropertyvalueinterceptor_p.h Loading commit data...
qqmlpropertyvaluesource.cpp Loading commit data...
qqmlpropertyvaluesource.h Loading commit data...
qqmlproxymetaobject.cpp Loading commit data...
qqmlproxymetaobject_p.h Loading commit data...
qqmlrewrite.cpp Loading commit data...
qqmlrewrite_p.h Loading commit data...
qqmlscript.cpp Loading commit data...
qqmlscript_p.h Loading commit data...
qqmlscriptstring.cpp Loading commit data...
qqmlscriptstring.h Loading commit data...
qqmlscriptstring_p.h Loading commit data...
qqmlstringconverters.cpp Loading commit data...
qqmlstringconverters_p.h Loading commit data...
qqmltypeloader.cpp Loading commit data...
qqmltypeloader_p.h Loading commit data...
qqmltypenamecache.cpp Loading commit data...
qqmltypenamecache_p.h Loading commit data...
qqmltypenotavailable.cpp Loading commit data...
qqmltypenotavailable_p.h Loading commit data...
qqmlvaluetype.cpp Loading commit data...
qqmlvaluetype_p.h Loading commit data...
qqmlvaluetypeproxybinding.cpp Loading commit data...
qqmlvaluetypeproxybinding_p.h Loading commit data...
qqmlvme.cpp Loading commit data...
qqmlvme_p.h Loading commit data...
qqmlvmemetaobject.cpp Loading commit data...
qqmlvmemetaobject_p.h Loading commit data...
qqmlwatcher.cpp Loading commit data...
qqmlwatcher_p.h Loading commit data...
qqmlxmlhttprequest.cpp Loading commit data...
qqmlxmlhttprequest_p.h Loading commit data...
qquickapplication.cpp Loading commit data...
qquickapplication_p.h Loading commit data...
qquicklistmodel.cpp Loading commit data...
qquicklistmodel_p.h Loading commit data...
qquicklistmodel_p_p.h Loading commit data...
qquicklistmodelworkeragent.cpp Loading commit data...
qquicklistmodelworkeragent_p.h Loading commit data...
qquickworkerscript.cpp Loading commit data...
qquickworkerscript_p.h Loading commit data...