aboutsummaryrefslogtreecommitdiffstats
path: root/qv4ecmaobjects_p.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2012-05-15 11:19:10 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2012-05-15 11:19:10 +0200
commit3dd5bfc0fd7bdcfe48cfdf90900b169c901a39cc (patch)
tree96209eb52dfe55e54db5b8f375120b134c837088 /qv4ecmaobjects_p.h
parenta909c6727978e077bfbfa7808d4ead09005bfe0b (diff)
Add the Boolean Object.
Diffstat (limited to 'qv4ecmaobjects_p.h')
-rw-r--r--qv4ecmaobjects_p.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/qv4ecmaobjects_p.h b/qv4ecmaobjects_p.h
index 386c2f11f4..d37aefc23f 100644
--- a/qv4ecmaobjects_p.h
+++ b/qv4ecmaobjects_p.h
@@ -83,6 +83,25 @@ protected:
static void method_toPrecision(Context *ctx);
};
+struct BooleanCtor: FunctionObject
+{
+ static Value create(ExecutionEngine *engine);
+
+ BooleanCtor(Context *scope);
+
+ virtual void construct(Context *ctx);
+ virtual void call(Context *ctx);
+};
+
+struct BooleanPrototype: Object
+{
+ BooleanPrototype(Context *ctx, FunctionObject *ctor);
+
+protected:
+ static void method_toString(Context *ctx);
+ static void method_valueOf(Context *ctx);
+};
+
struct MathObject: Object
{
MathObject(Context *ctx);