aboutsummaryrefslogtreecommitdiffstats
path: root/qv4ecmaobjects_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'qv4ecmaobjects_p.h')
-rw-r--r--qv4ecmaobjects_p.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/qv4ecmaobjects_p.h b/qv4ecmaobjects_p.h
index 6517ad1ea8..38164fc2aa 100644
--- a/qv4ecmaobjects_p.h
+++ b/qv4ecmaobjects_p.h
@@ -235,6 +235,24 @@ struct DatePrototype: DateObject
static void method_toUTCString(Context *ctx);
};
+struct RegExpCtor: FunctionObject
+{
+ RegExpCtor(Context *scope);
+
+ virtual void construct(Context *ctx);
+ virtual void call(Context *ctx);
+};
+
+struct RegExpPrototype: RegExpObject
+{
+ RegExpPrototype(): RegExpObject(Value::fromNumber(qSNaN())) {}
+ void init(Context *ctx, const Value &ctor);
+
+ static void method_exec(Context *ctx);
+ static void method_test(Context *ctx);
+ static void method_toString(Context *ctx);
+};
+
struct MathObject: Object
{
MathObject(Context *ctx);