Review Request: Have RegExp.prototype.test set lastIndex like Regexp.prototype.exec
peter at pcc.me.uk
peter at pcc.me.uk
Sat Mar 20 22:35:32 GMT 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3327/
-----------------------------------------------------------
Review request for kdelibs.
Summary
-------
Have RegExp.prototype.test set lastIndex like Regexp.prototype.exec
The EMCAScript specification states that Regexp.prototype.test
acts exactly like Regexp.prototype.exec except for returning a
boolean result. The kjs implementation currently does not conform
to this because it does not set lastIndex if the global flag is set.
This patch causes it to do so.
Diffs
-----
trunk/KDE/kdelibs/kjs/regexp_object.cpp 1105683
Diff: http://reviewboard.kde.org/r/3327/diff
Testing
-------
Thanks,
pcc
More information about the kde-core-devel
mailing list