From: Lars Knoll Date: Sun, 27 Jan 2013 21:13:28 +0000 (+0100) Subject: The function prototype has a length property X-Git-Tag: upstream/5.2.1~669^2~659^2~371 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db10aa3906b9740cdf64854945842ed3c9e978d0;p=platform%2Fupstream%2Fqtdeclarative.git The function prototype has a length property Change-Id: I1ef4d7c86ac5c5a8e7ed08081a86c4f826527c0d Reviewed-by: Simon Hausmann --- diff --git a/qv4functionobject.cpp b/qv4functionobject.cpp index b580f84..c857e23 100644 --- a/qv4functionobject.cpp +++ b/qv4functionobject.cpp @@ -206,6 +206,8 @@ void FunctionPrototype::init(ExecutionContext *ctx, const Value &ctor) defineDefaultProperty(ctx, QStringLiteral("apply"), method_apply, 2); defineDefaultProperty(ctx, QStringLiteral("call"), method_call, 1); defineDefaultProperty(ctx, QStringLiteral("bind"), method_bind, 1); + + defineReadonlyProperty(ctx->engine->id_length, Value::fromInt32(0)); } Value FunctionPrototype::method_toString(ExecutionContext *ctx)