DescriptionSeparate String.prototype.replace into RegExp.prototype[Symbol.replace]
This patch implements one aspect of ES2015 RegExp subclassing:
String.prototype.replace is separated into two parts, a method on
RegExp.prototype in case the first argument is a RegExp, and the
String.prototype.replace method, which handles the string pattern
case. This separation is described in the ES2015 specification.
Most of the patch is simply moving code from string.js to regexp.js.
R=yangguo
LOG=Y
BUG=v8:4343
Committed: https://crrev.com/837e374eace4b325ca93fb00b73568642f16f612
Cr-Commit-Position: refs/heads/master@{#33393}
Patch Set 1 #Patch Set 2 : Remove extra newline from test #
Messages
Total messages: 16 (7 generated)
|