aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-09-01 10:33:09 +0200
committerLars Knoll <lars.knoll@qt.io>2018-09-04 18:25:15 +0000
commita3225954d1049d9e4fea3171de00b24318a5ff31 (patch)
tree78c9db59611f19df439ac61fb2db339eee5da741 /src/qml/jsruntime/qv4functionobject_p.h
parent656db7a425fec6661ee3b42b89594a3e28637cdd (diff)
Member functions should not have a prototype property
Change-Id: I19eb4012c8fee51a7e5bf264d11ab5337ac2a88d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4functionobject_p.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h
index 5976fd8f78..43f4921875 100644
--- a/src/qml/jsruntime/qv4functionobject_p.h
+++ b/src/qml/jsruntime/qv4functionobject_p.h
@@ -118,7 +118,7 @@ DECLARE_HEAP_OBJECT(ScriptFunction, FunctionObject) {
Index_Name,
Index_Length
};
- void init(QV4::ExecutionContext *scope, Function *function, QV4::String *name = nullptr);
+ void init(QV4::ExecutionContext *scope, Function *function, QV4::String *name = nullptr, bool makeConstructor = true);
};
#define MemberFunctionMembers(class, Member) \
@@ -126,6 +126,10 @@ DECLARE_HEAP_OBJECT(ScriptFunction, FunctionObject) {
DECLARE_HEAP_OBJECT(MemberFunction, ScriptFunction) {
DECLARE_MARKOBJECTS(MemberFunction)
+
+ void init(QV4::ExecutionContext *scope, Function *function, QV4::String *name = nullptr) {
+ ScriptFunction::init(scope, function, name, false);
+ }
};
struct ConstructorFunction : MemberFunction