diff options
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index 1e7df2c27e..7a7c86a6c3 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -124,6 +124,10 @@ struct ConstructorFunction : ScriptFunction { }; +struct DefaultClassConstructorFunction : FunctionObject +{ +}; + #define BoundFunctionMembers(class, Member) \ Member(class, Pointer, FunctionObject *, target) \ Member(class, HeapValue, HeapValue, boundThis) \ @@ -243,6 +247,12 @@ struct ConstructorFunction : ScriptFunction { static ReturnedValue call(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc); }; +struct DefaultClassConstructorFunction : FunctionObject { + V4_OBJECT2(DefaultClassConstructorFunction, FunctionObject) + static ReturnedValue callAsConstructor(const FunctionObject *, const Value *argv, int argc); + static ReturnedValue call(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc); +}; + struct BoundFunction: FunctionObject { V4_OBJECT2(BoundFunction, FunctionObject) |