aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_runtime.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2012-11-29 14:39:19 +0100
committerLars Knoll <lars.knoll@digia.com>2012-11-29 16:18:21 +0100
commit36356a4b273e19ca599bf2a0cbfb02fda69e6c0a (patch)
tree7f10a6334a95de4d85cc2efae9cc88fa526e910d /qmljs_runtime.cpp
parent968fc9c6c9f3532e9456b3bf9049e6aa2282de7a (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_runtime.cpp')
-rw-r--r--qmljs_runtime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qmljs_runtime.cpp b/qmljs_runtime.cpp
index c5d796f5f9..1aa3c94f2c 100644
--- a/qmljs_runtime.cpp
+++ b/qmljs_runtime.cpp
@@ -119,9 +119,9 @@ Value __qmljs_init_closure(IR::Function *clos, ExecutionContext *ctx)
return Value::fromObject(ctx->engine->newScriptFunction(ctx, clos));
}
-Value __qmljs_init_native_function(Value (*code)(ExecutionContext *), ExecutionContext *ctx)
+Value __qmljs_init_native_function(String *name, Value (*code)(ExecutionContext *), ExecutionContext *ctx)
{
- return Value::fromObject(ctx->engine->newNativeFunction(ctx, code));
+ return Value::fromObject(ctx->engine->newNativeFunction(ctx, name, code));
}
Value __qmljs_string_literal_undefined(ExecutionContext *ctx)