diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2012-11-29 14:39:19 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2012-11-29 16:18:21 +0100 |
commit | 36356a4b273e19ca599bf2a0cbfb02fda69e6c0a (patch) | |
tree | 7f10a6334a95de4d85cc2efae9cc88fa526e910d /qmljs_objects.h | |
parent | 968fc9c6c9f3532e9456b3bf9049e6aa2282de7a (diff) |
Set the name of a function in more (most?) cases.
Change-Id: I1c2b9d61b6d97e3c2a8cb976fb6be8b68d51ae28
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'qmljs_objects.h')
-rw-r--r-- | qmljs_objects.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qmljs_objects.h b/qmljs_objects.h index 103a9de8fc..957a562d97 100644 --- a/qmljs_objects.h +++ b/qmljs_objects.h @@ -524,7 +524,7 @@ protected: struct NativeFunction: FunctionObject { Value (*code)(ExecutionContext *); - NativeFunction(ExecutionContext *scope, Value (*code)(ExecutionContext *)): FunctionObject(scope), code(code) {} + NativeFunction(ExecutionContext *scope, String *name, Value (*code)(ExecutionContext *)); virtual Value call(ExecutionContext *ctx) { return code(ctx); } virtual Value construct(ExecutionContext *ctx) { ctx->thisObject = code(ctx); return ctx->thisObject; } }; @@ -541,7 +541,7 @@ struct ScriptFunction: FunctionObject { struct EvalFunction : FunctionObject { - EvalFunction(ExecutionContext *scope): FunctionObject(scope) {} + EvalFunction(ExecutionContext *scope); static QQmlJS::IR::Function *parseSource(QQmlJS::VM::ExecutionContext *ctx, const QString &fileName, const QString &source, @@ -552,14 +552,14 @@ struct EvalFunction : FunctionObject struct IsNaNFunction: FunctionObject { - IsNaNFunction(ExecutionContext *scope): FunctionObject(scope) {} + IsNaNFunction(ExecutionContext *scope); virtual Value call(ExecutionContext *context, Value thisObject, Value *args, int argc); }; struct IsFiniteFunction: FunctionObject { - IsFiniteFunction(ExecutionContext *scope): FunctionObject(scope) {} + IsFiniteFunction(ExecutionContext *scope); virtual Value call(ExecutionContext *context, Value thisObject, Value *args, int argc); }; |