aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4enginebase_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-06-22 12:32:13 +0200
committerLars Knoll <lars.knoll@qt.io>2018-06-26 10:04:18 +0000
commiteae4756f74d70de46d9345ece54345f597bc1929 (patch)
tree3bd9de778a4a035a79595ed160c7b474a03695ec /src/qml/jsruntime/qv4enginebase_p.h
parente9b3bdb96e008060a0e78815a3995015e5e4598d (diff)
Add a MemberFunction function object
Member functions in ES7 can not be called as constructors and will throw a type error when trying. Some more fixes are needed here, as they also do not have a prototype property. Change-Id: Ieb920163acaa68d4ff0ff73ae4c1015e883b406f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4enginebase_p.h')
-rw-r--r--src/qml/jsruntime/qv4enginebase_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4enginebase_p.h b/src/qml/jsruntime/qv4enginebase_p.h
index 3e7aaca6a7..645f8e375f 100644
--- a/src/qml/jsruntime/qv4enginebase_p.h
+++ b/src/qml/jsruntime/qv4enginebase_p.h
@@ -106,6 +106,7 @@ struct Q_QML_EXPORT EngineBase {
Class_SymbolObject,
Class_ScriptFunction,
Class_ConstructorFunction,
+ Class_MemberFunction,
Class_ObjectProto,
Class_RegExp,
Class_RegExpObject,