Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Issue 1640803003: ES2015 web compat workaround: RegExp.prototype.flags => "" (Closed)

Created:
4 years, 11 months ago by Dan Ehrenberg
Modified:
4 years, 10 months ago
Reviewers:
adamk
CC:
Paweł Hajdan Jr., v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

ES2015 web compat workaround: RegExp.prototype.flags => "" 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 Committed: https://crrev.com/b22b2588740b059b26b6687095514c03dea0feaf Cr-Commit-Position: refs/heads/master@{#34201}

Patch Set 1 #

Patch Set 2 : Fix tests and remove UseCounters #

Patch Set 3 : Fix webkit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -9 lines) Patch
M src/js/harmony-unicode-regexps.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/js/regexp.js View 1 4 chunks +16 lines, -0 lines 0 comments Download
M test/mjsunit/es6/regexp-flags.js View 1 1 chunk +3 lines, -5 lines 0 comments Download
A + test/mjsunit/regress/regress-crbug-581577.js View 1 chunk +1 line, -3 lines 0 comments Download
M test/test262/test262.status View 1 1 chunk +6 lines, -0 lines 0 comments Download
M test/webkit/fast/regex/toString-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1640803003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1640803003/1
4 years, 11 months ago (2016-01-27 20:06:18 UTC) #2
Dan Ehrenberg
This patch includes UseCounters. It might need to be backported to earlier versions of V8, ...
4 years, 11 months ago (2016-01-27 20:08:56 UTC) #3
adamk
Please leave the usecounter for a separate patch; that'd make merging this more straightforward (it's ...
4 years, 11 months ago (2016-01-27 20:14:29 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/9297)
4 years, 11 months ago (2016-01-27 20:21:14 UTC) #6
Dan Ehrenberg
On 2016/01/27 at 20:21:14, commit-bot wrote: > Dry run: Try jobs failed on following builders: ...
4 years, 11 months ago (2016-01-27 21:04:07 UTC) #7
adamk
Justifying a merge to stable usually requires a significant impact assessment; it's not clear we ...
4 years, 11 months ago (2016-01-27 21:06:07 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1640803003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1640803003/20001
4 years, 11 months ago (2016-01-27 22:19:41 UTC) #10
Dan Ehrenberg
Apparently all websites using es6shim before the version from early November are subject to this ...
4 years, 11 months ago (2016-01-27 22:22:11 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/14654)
4 years, 11 months ago (2016-01-27 22:30:58 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1640803003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1640803003/40001
4 years, 11 months ago (2016-01-28 00:21:53 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-28 01:45:27 UTC) #18
Dan Ehrenberg
No UseCounters, and fixed tests. PTAL.
4 years, 11 months ago (2016-01-28 04:57:03 UTC) #20
adamk
Code looks fine, but I'd still like to hold off on landing this until we ...
4 years, 10 months ago (2016-01-28 23:47:51 UTC) #21
adamk
Turns out the non-web-compatible behavior, contrary to our previous understanding, was not shipped to stable ...
4 years, 10 months ago (2016-02-22 23:59:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1640803003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1640803003/40001
4 years, 10 months ago (2016-02-23 00:34:57 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-23 01:48:38 UTC) #25
commit-bot: I haz the power
4 years, 10 months ago (2016-02-23 01:49:13 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b22b2588740b059b26b6687095514c03dea0feaf
Cr-Commit-Position: refs/heads/master@{#34201}

Powered by Google App Engine
This is Rietveld 408576698