• littledan's avatar
    ES2015 web compat workaround: RegExp.prototype.flags => "" · b22b2588
    littledan authored
    It turns out that some old polyfill library uses
    RegExp.prototype.flags as a way of feature testing. It's not clear
    how widespread this is. For now, as a minimal workaround, we can
    return undefined from getters like RegExp.prototype.global when
    the receiver is RegExp.prototype. This patch implements that strategy
    but omits a UseCounter to make backports easier.
    
    R=adamk
    CC=yangguo@chromium.org
    BUG=chromium:581577
    LOG=Y
    CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel
    
    Review URL: https://codereview.chromium.org/1640803003
    
    Cr-Commit-Position: refs/heads/master@{#34201}
    b22b2588
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...