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_engine.cpp | |
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_engine.cpp')
-rw-r--r-- | qmljs_engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qmljs_engine.cpp b/qmljs_engine.cpp index ffecdf8f15..a1b3256fc7 100644 --- a/qmljs_engine.cpp +++ b/qmljs_engine.cpp @@ -199,9 +199,9 @@ String *ExecutionEngine::identifier(const QString &s) return id; } -FunctionObject *ExecutionEngine::newNativeFunction(ExecutionContext *scope, Value (*code)(ExecutionContext *)) +FunctionObject *ExecutionEngine::newNativeFunction(ExecutionContext *scope, String *name, Value (*code)(ExecutionContext *)) { - NativeFunction *f = new NativeFunction(scope, code); + NativeFunction *f = new NativeFunction(scope, name, code); f->prototype = scope->engine->functionPrototype; return f; } |