From 28f368c04411ac5f2a162bcf0e2a10de1d14b4a4 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 22 Jan 2013 12:15:51 +0100 Subject: [PATCH] Fix name property of Error prototype Change-Id: I21445a63a807d6a54bf8d8523fb901ae83f674a4 Reviewed-by: Lars Knoll --- qv4errorobject.cpp | 1 + tests/TestExpectations | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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 -- 2.7.4