aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4functionobject_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h
index 09a91138cb..4d4174d053 100644
--- a/src/qml/jsruntime/qv4functionobject_p.h
+++ b/src/qml/jsruntime/qv4functionobject_p.h
@@ -99,6 +99,11 @@ struct Q_QML_EXPORT FunctionObject: Object {
WrappedQtMethod = 1
};
+ enum {
+ Index_Prototype = 0,
+ Index_ProtoConstructor = 0
+ };
+
ExecutionContext *scope;
String *name;
String * const *formalParameterList;
@@ -107,7 +112,7 @@ struct Q_QML_EXPORT FunctionObject: Object {
unsigned int varCount;
Function *function;
- FunctionObject(ExecutionContext *scope, String *name = 0);
+ FunctionObject(ExecutionContext *scope, String *name = 0, bool createProto = false);
~FunctionObject();
Value newInstance();