diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-12 08:28:08 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-12-12 09:09:32 +0100 |
commit | 463ed070beb7cc5ad15692b6ea2cc403695b2a49 (patch) | |
tree | 728518daf2986fb9cdf7cf09b88e441913bf1794 /qmljs_engine.h | |
parent | 834d0b72dcb4f785699d2b9b476bc9a78f5574fb (diff) |
Properly set the prototype for regexp objects
Clean up the code, so that regexp's get instantiated by
the ExecutionEngine
Change-Id: Iacc8d9fee0427342156747d6e8814d7660bdbb1a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r-- | qmljs_engine.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qmljs_engine.h b/qmljs_engine.h index eef62a3249..bcaff099e9 100644 --- a/qmljs_engine.h +++ b/qmljs_engine.h @@ -193,7 +193,8 @@ struct ExecutionEngine Object *newDateObject(const Value &value); FunctionObject *newDateCtor(ExecutionContext *ctx); - Object *newRegExpObject(const QString &pattern, int flags); + RegExpObject *newRegExpObject(const QString &pattern, int flags); + RegExpObject *newRegExpObject(const QRegularExpression &re, bool global); FunctionObject *newRegExpCtor(ExecutionContext *ctx); Object *newErrorObject(const Value &value); |