From 6f181768a3147bbfa9a33cf2c05453365693f5b9 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 11 Dec 2020 13:35:53 +0100 Subject: Add a QJSManagedValue A QJSManagedValue is a view on a QJSValue which always knows the engine the value belongs to. This allows us to implement the JavaScript semantics of the various QJSValue methods in a much more rigorous way. [ChangeLog][QtQml] The new QJSManagedValue should be used instead of QJSValue for manipulating properties and prototypes of JavaScript values, as well as for calling JavaScript functions. Change-Id: I9d445ffcf68dfa72dba9bae0818e83c80665ad66 Reviewed-by: Fabian Kosmale --- src/qml/jsapi/jsapi.pri | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/jsapi/jsapi.pri') diff --git a/src/qml/jsapi/jsapi.pri b/src/qml/jsapi/jsapi.pri index f96f8c959b..3463a3aafe 100644 --- a/src/qml/jsapi/jsapi.pri +++ b/src/qml/jsapi/jsapi.pri @@ -1,5 +1,6 @@ SOURCES += \ $$PWD/qjsengine.cpp \ + $$PWD/qjsmanagedvalue.cpp \ $$PWD/qjsprimitivevalue.cpp \ $$PWD/qjsvalue.cpp \ $$PWD/qjsvalueiterator.cpp \ @@ -7,6 +8,7 @@ SOURCES += \ HEADERS += \ $$PWD/qjsengine.h \ $$PWD/qjsengine_p.h \ + $$PWD/qjsmanagedvalue.h \ $$PWD/qjsprimitivevalue.h \ $$PWD/qjsvalue.h \ $$PWD/qjsvalue_p.h \ -- cgit v1.2.3