diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-08-08 12:39:54 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-09-08 17:45:06 +0000 |
commit | c1fed764a2495373a9e4563bc3ac0d578b2f9409 (patch) | |
tree | e263aa10cd111d4d8f0d4e1cfeb49460f2a0eb2b /src/quick/items | |
parent | 5f17840a14e22da0cfa973b36b9f6ce3bc8d4067 (diff) |
Fix reuse of regexp objects by regexp literals
Accoding to the standard the regexp objects created by literals should
be separate objects as if calling new. We were violating that by caching
the same object for every instance of a literal.
This also fixes a problem with leaking values of lastIndex between
separate instances of the same global regexp literal.
Task-number: QTBUG-62175
Change-Id: Ib22e9ee68de1d1209fbd4212e72f576bc059d245
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quick/items')
0 files changed, 0 insertions, 0 deletions