• jgruber's avatar
    Revert of [regexp] Named capture support for string replacements (patchset #5... · 34ffdd62
    jgruber authored
    Revert of [regexp] Named capture support for string replacements (patchset #5 id:80001 of https://codereview.chromium.org/2775303002/ )
    
    Reason for revert:
    Invalid DCHECKs for non-matched groups.
    
    Original issue's description:
    > [regexp] Named capture support for string replacements
    >
    > This implements support for named captures in
    > RegExp.prototype[@@replace] for when the replaceValue is not callable.
    >
    > Named captures can be referenced from replacement strings by using the
    > "$<name>" syntax. A couple of examples:
    >
    > let re = /(?<fst>.)(?<snd>.)/u;
    > "abcd".replace(re, "$<snd>$<fst>")  // "bacd"
    > "abcd".replace(re, "$2$1")     // "bacd" (numbered refs work as always)
    > "abcd".replace(re, "$<snd")    // SyntaxError (unterminated named ref)
    > "abcd".replace(re, "$<42$1>")  // "cd" (invalid name)
    > "abcd".replace(re, "$<thd>")   // "cd" (non-existent name)
    > "abcd".replace(/(?<fst>.)|(?<snd>.)/u, "$<snd>")  // "cd" (non-matched capture)
    >
    > Support is currently behind the --harmony-regexp-named-captures flag.
    >
    > BUG=v8:5437
    >
    > Review-Url: https://codereview.chromium.org/2775303002
    > Cr-Commit-Position: refs/heads/master@{#44171}
    > Committed: https://chromium.googlesource.com/v8/v8/+/17f13863b64b25eccf565e0aa9c4c441f0562b84
    
    TBR=yangguo@chromium.org,littledan@chromium.org
    # Skipping CQ checks because original CL landed less than 1 days ago.
    NOPRESUBMIT=true
    NOTREECHECKS=true
    NOTRY=true
    BUG=v8:5437
    
    Review-Url: https://codereview.chromium.org/2776293003
    Cr-Commit-Position: refs/heads/master@{#44180}
    34ffdd62
Name
Last commit
Last update
..
regress Loading commit data...
array-concat-array-proto-getter.js Loading commit data...
array-concat-array-proto.js Loading commit data...
array-concat-object-proto-dict-getter.js Loading commit data...
array-concat-object-proto-dict.js Loading commit data...
array-concat-object-proto-generic-dict.js Loading commit data...
array-concat-object-proto.js Loading commit data...
async-from-sync-iterator.js Loading commit data...
atomics.js Loading commit data...
block-lazy-compile.js Loading commit data...
dataview-accessors.js Loading commit data...
default-parameter-do-expression.js Loading commit data...
do-expressions-control.js Loading commit data...
do-expressions.js Loading commit data...
for-await-of.js Loading commit data...
function-sent.js Loading commit data...
function-tostring.js Loading commit data...
futex.js Loading commit data...
generators.js Loading commit data...
harmony-string-pad-end.js Loading commit data...
harmony-string-pad-start.js Loading commit data...
module-parsing-eval.js Loading commit data...
object-rest-basic.js Loading commit data...
object-spread-basic.js Loading commit data...
private-symbols.js Loading commit data...
private.js Loading commit data...
promise-prototype-finally.js Loading commit data...
regexp-change-exec.js Loading commit data...
regexp-lookbehind.js Loading commit data...
regexp-named-captures.js Loading commit data...
regexp-property-binary.js Loading commit data...
regexp-property-char-class.js Loading commit data...
regexp-property-disabled.js Loading commit data...
regexp-property-enumerated.js Loading commit data...
regexp-property-exact-match.js Loading commit data...
regexp-property-general-category.js Loading commit data...
regexp-property-invalid.js Loading commit data...
regexp-property-lu-ui.js Loading commit data...
regexp-property-script-extensions.js Loading commit data...
regexp-property-scripts.js Loading commit data...
regexp-property-special.js Loading commit data...
set-prototype-of.js Loading commit data...
sharedarraybuffer.js Loading commit data...
sloppy-legacy-duplicate-generators.js Loading commit data...
sloppy-no-duplicate-generators.js Loading commit data...
symbol-async-iterator.js Loading commit data...
template-escapes.js Loading commit data...
to-length.js Loading commit data...
to-name.js Loading commit data...
to-number.js Loading commit data...
to-primitive.js Loading commit data...
to-string.js Loading commit data...
trailing-commas-length.js Loading commit data...