aboutsummaryrefslogtreecommitdiffstats
path: root/qv4ecmaobjects_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-01 15:37:47 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-01 15:58:07 +0100
commit6f931118d6940f3dc315613d870498145fcc0d26 (patch)
treedc91cb96d9f39a3c8f00d61db12894dacb9ba47e /qv4ecmaobjects_p.h
parent88e869fe567b185e2bc7a851d78776cda3b60c03 (diff)
Initial implementation of the Error prototype and constructor
Change-Id: Iffd1a01b75bc923c0cd8c0b786558be20a52ab2c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qv4ecmaobjects_p.h')
-rw-r--r--qv4ecmaobjects_p.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/qv4ecmaobjects_p.h b/qv4ecmaobjects_p.h
index 6b20e27eb1..3f78feaa64 100644
--- a/qv4ecmaobjects_p.h
+++ b/qv4ecmaobjects_p.h
@@ -294,6 +294,23 @@ struct RegExpPrototype: RegExpObject
static void method_toString(Context *ctx);
};
+struct ErrorCtor: FunctionObject
+{
+ ErrorCtor(Context *scope);
+
+ virtual void construct(Context *ctx);
+ virtual void call(Context *ctx);
+};
+
+struct ErrorPrototype: ErrorObject
+{
+ // ### shouldn't be undefined
+ ErrorPrototype(): ErrorObject(Value::undefinedValue()) {}
+ void init(Context *ctx, const Value &ctor);
+
+ static void method_toString(Context *ctx);
+};
+
struct MathObject: Object
{
MathObject(Context *ctx);