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

Issue 1303033003: Fix function scoping issue (Closed)

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

Description

Fix function scoping issue The parser has special behavior with respect to the bindings of inner functions in sloppy mode which are not at the top level of scopes. This behavior should be turned off when the --harmony-sloppy-function flag is set, as lexical scoping rules are used instead. Previously, the incorrect flag --harmony-sloppy was used, resulting in a crashing bug. BUG=chromium:520029 LOG=Y R=adamk Committed: https://crrev.com/9c79e69e6c9725501852a26de1d0284e6aad038d Cr-Commit-Position: refs/heads/master@{#30315}

Patch Set 1 #

Patch Set 2 : Add regression tests #

Total comments: 6

Patch Set 3 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M src/parser.cc View 1 chunk +2 lines, -1 line 0 comments Download
A test/mjsunit/regress/regress-520029.js View 1 2 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 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/1303033003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303033003/1
5 years, 4 months ago (2015-08-21 00:34:42 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-21 01:02:25 UTC) #4
Dan Ehrenberg
5 years, 4 months ago (2015-08-21 21:09:53 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303033003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303033003/20001
5 years, 4 months ago (2015-08-21 21:10:05 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-21 21:34:29 UTC) #10
adamk
Code looks fine, some questions about the test. https://codereview.chromium.org/1303033003/diff/20001/test/mjsunit/regress/regress-520029.js File test/mjsunit/regress/regress-520029.js (right): https://codereview.chromium.org/1303033003/diff/20001/test/mjsunit/regress/regress-520029.js#newcode28 test/mjsunit/regress/regress-520029.js:28: try ...
5 years, 4 months ago (2015-08-21 21:39:04 UTC) #11
Dan Ehrenberg
https://codereview.chromium.org/1303033003/diff/20001/test/mjsunit/regress/regress-520029.js File test/mjsunit/regress/regress-520029.js (right): https://codereview.chromium.org/1303033003/diff/20001/test/mjsunit/regress/regress-520029.js#newcode28 test/mjsunit/regress/regress-520029.js:28: try { On 2015/08/21 at 21:39:04, adamk wrote: > ...
5 years, 4 months ago (2015-08-21 23:04:31 UTC) #12
adamk
lgtm
5 years, 4 months ago (2015-08-21 23:40:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1303033003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1303033003/40001
5 years, 4 months ago (2015-08-21 23:53:32 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-22 00:18:16 UTC) #16
commit-bot: I haz the power
5 years, 4 months ago (2015-08-22 00:18:37 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9c79e69e6c9725501852a26de1d0284e6aad038d
Cr-Commit-Position: refs/heads/master@{#30315}

Powered by Google App Engine
This is Rietveld 408576698