diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-11-28 22:45:43 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-11-29 07:52:39 +0100 |
commit | 4035e103cb51f670fb7172f3c19e133ac670b5f1 (patch) | |
tree | a10599bb6887b4d12e4b1d13831c4f9759baffa8 /qv4ecmaobjects_p.h | |
parent | 80ece65fbd7a8ea4c3481215cb406fc301d10d50 (diff) |
Add defineGetter and defineSetter methods to Object
These methods are de-facto standard (every engine implements
them), and also allow testing of accessor properties.
Change-Id: I1fcaa7467f7be56ea758bf511e843385f74b9641
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qv4ecmaobjects_p.h')
-rw-r--r-- | qv4ecmaobjects_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qv4ecmaobjects_p.h b/qv4ecmaobjects_p.h index 7afbe43ac5..02d7d8cf19 100644 --- a/qv4ecmaobjects_p.h +++ b/qv4ecmaobjects_p.h @@ -80,6 +80,9 @@ struct ObjectPrototype: Object static Value method_hasOwnProperty(ExecutionContext *ctx); static Value method_isPrototypeOf(ExecutionContext *ctx); static Value method_propertyIsEnumerable(ExecutionContext *ctx); + + static Value method_defineGetter(ExecutionContext *ctx); + static Value method_defineSetter(ExecutionContext *ctx); }; struct StringCtor: FunctionObject |