• 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
..
OWNERS Loading commit data...
array-iterator.js Loading commit data...
array.js Loading commit data...
arraybuffer.js Loading commit data...
collection-iterator.js Loading commit data...
collection.js Loading commit data...
generator.js Loading commit data...
harmony-atomics.js Loading commit data...
harmony-object-observe.js Loading commit data...
harmony-regexp-exec.js Loading commit data...
harmony-sharedarraybuffer.js Loading commit data...
harmony-simd.js Loading commit data...
harmony-species.js Loading commit data...
harmony-string-padding.js Loading commit data...
harmony-unicode-regexps.js Loading commit data...
i18n.js Loading commit data...
iterator-prototype.js Loading commit data...
json.js Loading commit data...
macros.py Loading commit data...
math.js Loading commit data...
messages.js Loading commit data...
object-observe.js Loading commit data...
prologue.js Loading commit data...
promise-extra.js Loading commit data...
promise.js Loading commit data...
proxy.js Loading commit data...
regexp.js Loading commit data...
runtime.js Loading commit data...
spread.js Loading commit data...
string-iterator.js Loading commit data...
string.js Loading commit data...
symbol.js Loading commit data...
templates.js Loading commit data...
typedarray.js Loading commit data...
uri.js Loading commit data...
v8natives.js Loading commit data...
weak-collection.js Loading commit data...