• littledan's avatar
    Remove RegExp.prototype.source getter compat workaround · 80803aa8
    littledan authored
    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
    
    Review URL: https://codereview.chromium.org/1837843002
    
    Cr-Commit-Position: refs/heads/master@{#35086}
    80803aa8
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...