Steps to reproduce: Command: jsc -e 'print(")".replace(")", "*$&*"))' Actual: *$&* Expected: *)* References: ECMAv5:15.5.4.11
Created attachment 64914 [details] Patch to fix single character search string optimization. Added check to only execute single character replace() optimization if there aren't any back references by checking for existence of '$' in replace string.
Comment on attachment 64914 [details] Patch to fix single character search string optimization. Clearing flags on attachment: 64914 Committed r65840: <http://trac.webkit.org/changeset/65840>
All reviewed patches have been landed. Closing bug.