diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-01 20:08:26 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-12-02 15:55:36 +0100 |
commit | 5d2f12ee03d942e5bd37df2b976b90525f51a1e4 (patch) | |
tree | 6ba79f1a710e99c483fe0103e28e5bcc90c97e64 /qmljs_objects.h | |
parent | 751ceb0f8ff517e83c96d39a5d0b74132adb78aa (diff) |
Remove the callFunction() method
Give Object a virtual call() method, that simply throws
a type error. FunctionObject reimplements this to do the
right thing.
Change-Id: I5a11a4de0302ad86b9ad3a822501224e11692b70
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_objects.h')
-rw-r--r-- | qmljs_objects.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qmljs_objects.h b/qmljs_objects.h index 927b9f32d1..cd9c2430cc 100644 --- a/qmljs_objects.h +++ b/qmljs_objects.h @@ -429,6 +429,8 @@ struct Object { virtual bool __delete__(ExecutionContext *ctx, String *name); virtual bool __defineOwnProperty__(ExecutionContext *ctx, String *name, PropertyDescriptor *desc); + virtual Value call(ExecutionContext *context, Value, Value *, int); + // // helpers // |