-
barraclough@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=26890 Reviewed by Oliver Hunt. Per 15.10.6.2 step 9.a.1 called via the action of the last iteration of 15.5.4.10 8.f.i. Source/JavaScriptCore: * runtime/StringPrototype.cpp: (JSC::replaceUsingRegExpSearch): (JSC::stringProtoFuncMatch): - added calls to setLastIndex. LayoutTests: * fast/js/script-tests/string-match.js: Added. * fast/js/string-match-expected.txt: Added. * fast/js/string-match.html: Added. - Added test case for match. * fast/js/script-tests/string-replace-2.js: * fast/js/string-replace-2-expected.txt: - Added tests for update correct lastIndex handling. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@110233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
cee7a621