-
msaboff@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=101003 Reviewed by Geoffrey Garen. Took the logic of regExpObjectSource() and created two templated helpers that uses the source character type when appending to the StringBuilder. * runtime/RegExpObject.cpp: (JSC::appendLineTerminatorEscape): Checks line terminate type to come up with escaped version. (JSC::regExpObjectSourceInternal): Templated version of original. (JSC::regExpObjectSource): Wrapper function. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@133333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
0f06ebf0