From 9ad7428fe683b2ccc729f77dc541e6ac20d50829 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 28 Jan 2013 10:39:40 +0100 Subject: [PATCH] Properly set the length of the eval function Change-Id: I88a483f5c9a758c4983d5d3b2c684f6bc7e8cf55 Reviewed-by: Simon Hausmann --- qv4globalobject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qv4globalobject.cpp b/qv4globalobject.cpp index f75d313..337196c 100644 --- a/qv4globalobject.cpp +++ b/qv4globalobject.cpp @@ -311,6 +311,7 @@ EvalFunction::EvalFunction(ExecutionContext *scope) : FunctionObject(scope) { name = scope->engine->id_eval; + defineReadonlyProperty(scope->engine->id_length, Value::fromInt32(1)); } Value EvalFunction::evalCall(ExecutionContext *context, Value /*thisObject*/, Value *args, int argc, bool directCall) -- 2.7.4