diff options
author | Lars Knoll <lars.knoll@qt.io> | 2016-08-09 10:50:45 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-08-09 09:33:52 +0000 |
commit | 5795e059dd40c0feeb3e408d47fa2ff64d56c791 (patch) | |
tree | 2316f8ec8ce0c58ade7010f883f70a09f56b49dd /src/qml/jsruntime/qv4functionobject_p.h | |
parent | 126da812a0c9e8f39d839374082ed6fbfadc38b6 (diff) |
Fix signatures of FunctionObject::construct and call
Fixup for 702c4247d74ffb7e4fb1aaca96d70f4591203ba2.
Fixes the test failures in section 15.3.4 of the JS
test suite.
Change-Id: Id44886e0301b560f2975104757467bb0c22aed60
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index be80b87873..182b762606 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -147,8 +147,8 @@ struct Q_QML_EXPORT FunctionObject: Object { using Object::construct; using Object::call; - static ReturnedValue construct(const Managed *that, CallData *); - static ReturnedValue call(const Managed *that, CallData *d); + static void construct(const Managed *that, Scope &scope, CallData *); + static void call(const Managed *that, Scope &scope, CallData *d); static Heap::FunctionObject *createScriptFunction(ExecutionContext *scope, Function *function, bool createProto = true); static Heap::FunctionObject *createQmlFunction(QQmlContextData *qmlContext, QObject *scopeObject, QV4::Function *runtimeFunction, |