From db10aa3906b9740cdf64854945842ed3c9e978d0 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sun, 27 Jan 2013 22:13:28 +0100 Subject: [PATCH] The function prototype has a length property Change-Id: I1ef4d7c86ac5c5a8e7ed08081a86c4f826527c0d Reviewed-by: Simon Hausmann --- qv4functionobject.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.7.4