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

Issue 1776883005: Put RegExp js code in strict mode (Closed)

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

Description

Put RegExp js code in strict mode src/js/regexp.js was one of the few files that was left in sloppy mode. The ES2017 draft specification requires that writes to lastIndex throw when the property is non-writable, and test262 tests enforce this behavior. This patch puts that file in strict mode. BUG=v8:4504 R=yangguo@chromium.org LOG=Y Committed: https://crrev.com/80b1b2a45bbd9bf3d08e4e6516acfaaa8f438213 Cr-Commit-Position: refs/heads/master@{#34801}

Patch Set 1 #

Patch Set 2 : Better testing #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -7 lines) Patch
M src/js/regexp.js View 1 chunk +2 lines, -0 lines 0 comments Download
A test/mjsunit/regexp-lastIndex.js View 1 1 chunk +18 lines, -0 lines 1 comment Download
M test/test262/test262.status View 1 chunk +0 lines, -4 lines 0 comments Download
M test/webkit/fast/regex/lastIndex-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (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/1776883005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776883005/1
4 years, 9 months ago (2016-03-09 23:45:31 UTC) #2
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/11360)
4 years, 9 months ago (2016-03-09 23:56:22 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776883005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776883005/20001
4 years, 9 months ago (2016-03-10 01:09:22 UTC) #6
Dan Ehrenberg
4 years, 9 months ago (2016-03-10 01:26:54 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 01:37:54 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776883005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776883005/20001
4 years, 9 months ago (2016-03-11 07:28:33 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/16757)
4 years, 9 months ago (2016-03-11 07:32:59 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/1776883005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776883005/20001
4 years, 9 months ago (2016-03-14 17:32:25 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-14 17:51:46 UTC) #17
Yang
LGTM. Might be a good idea to run LayoutTests upfront though. https://codereview.chromium.org/1776883005/diff/20001/test/mjsunit/regexp-lastIndex.js File test/mjsunit/regexp-lastIndex.js (right): ...
4 years, 9 months ago (2016-03-15 06:56:36 UTC) #18
Dan Ehrenberg
On 2016/03/15 at 06:56:36, yangguo wrote: > LGTM. Might be a good idea to run ...
4 years, 9 months ago (2016-03-15 21:58:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776883005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776883005/20001
4 years, 9 months ago (2016-03-15 21:59:08 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-15 22:25:13 UTC) #22
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/80b1b2a45bbd9bf3d08e4e6516acfaaa8f438213 Cr-Commit-Position: refs/heads/master@{#34801}
4 years, 9 months ago (2016-03-15 22:27:21 UTC) #24
Dan Ehrenberg
4 years, 5 months ago (2016-06-29 21:40:30 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2106803004/ by littledan@chromium.org.

The reason for reverting is: Found to break SAP Web IDE, and these semantics are
not shipped in any other browser.
Revert to legacy semantics while assessing web compatibility.

BUG=chromium:624318.

Powered by Google App Engine
This is Rietveld 408576698