diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-15 11:19:10 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-15 11:19:10 +0200 |
commit | 3dd5bfc0fd7bdcfe48cfdf90900b169c901a39cc (patch) | |
tree | 96209eb52dfe55e54db5b8f375120b134c837088 /qv4ecmaobjects_p.h | |
parent | a909c6727978e077bfbfa7808d4ead09005bfe0b (diff) |
Add the Boolean Object.
Diffstat (limited to 'qv4ecmaobjects_p.h')
-rw-r--r-- | qv4ecmaobjects_p.h | 19 |
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); |