• Jakob Gruber's avatar
    Reland "[regexp] Escape newlines when setting [[OriginalSource]]" · 4edfaa1f
    Jakob Gruber authored
    This is a reland of 0e22ec73
    
    Original change's description:
    > [regexp] Escape newlines when setting [[OriginalSource]]
    > 
    > This escapes LineTerminator characters in a regexp pattern when
    > creating the string that will be stored in the [[OriginalSource]] slot.
    > 
    > As an example, the source property for all following objects will equal
    > "\n" (a '\' character followed by 'n'):
    > 
    >   /\n/
    >   new RegExp("\n")
    >   new RegExp("\\n")
    > 
    > Bug: v8:1982, chromium:855009
    > Change-Id: I3b539497a0697e3d51ec969cae49308b0b312a19
    > Reviewed-on: https://chromium-review.googlesource.com/c/1384316
    > Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    > Reviewed-by: Yang Guo <yangguo@chromium.org>
    > Reviewed-by: Mathias Bynens <mathias@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#58387}
    
    Bug: v8:1982, chromium:855009
    Change-Id: I1ba22395477ec37e8e8c944000f9beade1e3250b
    Reviewed-on: https://chromium-review.googlesource.com/c/1386495Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#58419}
    4edfaa1f
Name
Last commit
Last update
..
alternative-length-miscalculation-expected.txt Loading commit data...
alternative-length-miscalculation.js Loading commit data...
assertion-expected.txt Loading commit data...
assertion.js Loading commit data...
constructor-expected.txt Loading commit data...
constructor.js Loading commit data...
dotstar-expected.txt Loading commit data...
dotstar.js Loading commit data...
early-acid3-86-expected.txt Loading commit data...
early-acid3-86.js Loading commit data...
ecma-regex-examples-expected.txt Loading commit data...
ecma-regex-examples.js Loading commit data...
invalid-range-in-class-expected.txt Loading commit data...
invalid-range-in-class.js Loading commit data...
lastIndex-expected.txt Loading commit data...
lastIndex.js Loading commit data...
malformed-escapes-expected.txt Loading commit data...
malformed-escapes.js Loading commit data...
non-capturing-backtracking-expected.txt Loading commit data...
non-capturing-backtracking.js Loading commit data...
overflow-expected.txt Loading commit data...
overflow.js Loading commit data...
parentheses-expected.txt Loading commit data...
parentheses.js Loading commit data...
pcre-test-4-expected.txt Loading commit data...
pcre-test-4.js Loading commit data...
quantified-assertions-expected.txt Loading commit data...
quantified-assertions.js Loading commit data...
repeat-match-waldemar-expected.txt Loading commit data...
repeat-match-waldemar.js Loading commit data...
toString-expected.txt Loading commit data...
toString.js Loading commit data...
unicodeCaseInsensitive-expected.txt Loading commit data...
unicodeCaseInsensitive.js Loading commit data...