Various fixes to RegExp
authorLars Knoll <lars.knoll@digia.com>
Fri, 3 May 2013 20:38:57 +0000 (22:38 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Sat, 4 May 2013 08:25:14 +0000 (10:25 +0200)
commit8095a376f301c2fc6f8e98d269ef100772283392
tree0322939ab7dee315d98c76b4c5eb473bec8b3225
parent6471a2586de63e09ddec4b3b3dba1c6eee34c58d
Various fixes to RegExp

Duplicated pattern flags in regexp literals should lead to a parse error
Make sure RegExpObjects created from a QRegExp have proper type and vtable
Fix RegExp constructor when invoked with an empty pattern

Fixes two qjsengine autotests.

Change-Id: Idbb7dde73f20cb81dea4a07cf0f2cb030aee321b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/parser/qqmljslexer.cpp
src/qml/qml/v4/qv4regexpobject.cpp