Fix name property of Error prototype
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 22 Jan 2013 11:15:51 +0000 (12:15 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 22 Jan 2013 11:20:48 +0000 (12:20 +0100)
Change-Id: I21445a63a807d6a54bf8d8523fb901ae83f674a4
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
qv4errorobject.cpp
tests/TestExpectations

index d59fa23..b5005cb 100644 (file)
@@ -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)
index 7a75cc2..7faeaa7 100644 (file)
@@ -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