From b4cf8c1f1af444c829e46ad79f778951886cc29d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 21 Jun 2023 14:06:42 +0200 Subject: QML: Revert the default for enforcing function signatures [ChangeLog][QtQml][Important Behavior Changes] Type annotations on function signatures are now enforced, no matter if the code in question is interpreted, JIT-compiled, or AOT-compiled. Previously, only AOT-compiled code enforced the signatures. Therefore you could produce divergent behavior by passing or returning values that violated the type annotations. Fixes: QTBUG-113527 Fixes: QTBUG-109221 Change-Id: Ie573b31f35813db37b75189e747c764d1b9bbe78 Reviewed-by: Fabian Kosmale --- src/qml/common/qv4compileddata_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/common') diff --git a/src/qml/common/qv4compileddata_p.h b/src/qml/common/qv4compileddata_p.h index dde4082172..41608bb625 100644 --- a/src/qml/common/qv4compileddata_p.h +++ b/src/qml/common/qv4compileddata_p.h @@ -1200,7 +1200,7 @@ struct Unit ListPropertyAssignReplace = ListPropertyAssignReplaceIfDefault | ListPropertyAssignReplaceIfNotDefault, ComponentsBound = 0x200, - FunctionSignaturesEnforced = 0x400, + FunctionSignaturesIgnored = 0x400, NativeMethodsAcceptThisObject = 0x800, ValueTypesCopied = 0x1000, ValueTypesAddressable = 0x2000, -- cgit v1.2.3