From: Simon Hausmann Date: Tue, 22 Jan 2013 11:15:51 +0000 (+0100) Subject: Fix name property of Error prototype X-Git-Tag: upstream/5.2.1~669^2~659^2~432 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28f368c04411ac5f2a162bcf0e2a10de1d14b4a4;p=platform%2Fupstream%2Fqtdeclarative.git Fix name property of Error prototype Change-Id: I21445a63a807d6a54bf8d8523fb901ae83f674a4 Reviewed-by: Lars Knoll --- diff --git a/qv4errorobject.cpp b/qv4errorobject.cpp index d59fa23..b5005cb 100644 --- a/qv4errorobject.cpp +++ b/qv4errorobject.cpp @@ -203,6 +203,7 @@ void ErrorPrototype::init(ExecutionContext *ctx, const Value &ctor, Object *obj) obj->defineDefaultProperty(ctx, QStringLiteral("constructor"), ctor); obj->defineDefaultProperty(ctx, QStringLiteral("toString"), method_toString, 0); obj->defineDefaultProperty(ctx, QStringLiteral("message"), Value::fromString(ctx, QString())); + obj->defineDefaultProperty(ctx, QStringLiteral("name"), Value::fromString(ctx, QStringLiteral("Error"))); } Value ErrorPrototype::method_toString(ExecutionContext *ctx) diff --git a/tests/TestExpectations b/tests/TestExpectations index 7a75cc2..7faeaa7 100644 --- a/tests/TestExpectations +++ b/tests/TestExpectations @@ -289,8 +289,6 @@ S15.1.2.2_A9.2 failing S15.1.2.2_A9.3 failing S15.1.2.2_A9.4 failing S15.1.2.2_A9.7 failing -S15.11.4.2_A1 failing -S15.11.4.2_A2 failing 15.12.1.1-g6-3 failing 15.12.1.1-g6-4 failing 15.12.1.1-g6-5 failing