• littledan's avatar
    Revert of Remove RegExp.prototype.source getter compat workaround (patchset #2... · 31e806eb
    littledan authored
    Revert of Remove RegExp.prototype.source getter compat workaround (patchset #2 id:20001 of https://codereview.chromium.org/1837843002/ )
    
    Reason for revert:
    TC39 decided that this compatibility fix should be standardized.
    
    Original issue's description:
    > Remove RegExp.prototype.source getter compat workaround
    >
    > The getter RegExp.prototype.source is specified in ES2015 to throw when
    > called on a non-RegExp instance, such as RegExp.prototype. We had previously
    > put in a compatibility workaround for all RegExp getters to make them
    > throw on access specifically with RegExp.prototype as the receiver; however,
    > we only have evidence that this is needed for properties other than source.
    > This patch removes the compatibility workaround for get RegExp.prototype.source
    > and gives it semantics precisely as per the ES2015 specification.
    >
    > R=adamk
    > BUG=chromium:581577,v8:4827
    > LOG=Y
    >
    > Committed: https://crrev.com/80803aa89e31839b8f73959776fa7e1923c6b461
    > Cr-Commit-Position: refs/heads/master@{#35086}
    
    R=adamk@chromium.org
    # Not skipping CQ checks because original CL landed more than 1 days ago.
    BUG=chromium:581577,v8:4827
    LOG=Y
    
    Review URL: https://codereview.chromium.org/1847783003
    
    Cr-Commit-Position: refs/heads/master@{#35180}
    31e806eb
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...