|
|
DescriptionFix bug with nested spreads as patterns
R=adamk@chromium.org, littledan@chromium.org
BUG=v8:5337
LOG=N
Committed: https://crrev.com/628e9e3eb85cea3cb7c9067b89a948298b021215
Cr-Commit-Position: refs/heads/master@{#39118}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 20 (13 generated)
The CQ bit was checked by nikolaos@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Fix bug with nested spreads as patterns R=adamk@chromium.org, littledan@chromium.org BUG=v8:5337 LOG=N ========== to ========== Fix bug with nested spreads as patterns R=adamk@chromium.org, littledan@chromium.org BUG=v8:5337 LOG=N ==========
caitp@igalia.com changed reviewers: + caitp@igalia.com
https://codereview.chromium.org/2297303003/diff/1/src/parsing/pattern-rewrite... File src/parsing/pattern-rewriter.cc (right): https://codereview.chromium.org/2297303003/diff/1/src/parsing/pattern-rewrite... src/parsing/pattern-rewriter.cc:271: return Visit(node->expression()); my understanding is, this will recursively continue the rewriting from the Visit(node->expression()) 2 lines above this, right? I think it looks okay, but I'm not sure why the nested pattern would be a RewritableExpression in the first place
On 2016/09/01 15:34:41, caitp wrote: > https://codereview.chromium.org/2297303003/diff/1/src/parsing/pattern-rewrite... > File src/parsing/pattern-rewriter.cc (right): > > https://codereview.chromium.org/2297303003/diff/1/src/parsing/pattern-rewrite... > src/parsing/pattern-rewriter.cc:271: return Visit(node->expression()); > my understanding is, this will recursively continue the rewriting from the > Visit(node->expression()) 2 lines above this, right? Yes. This is equivalent to what we were doing before, only in the case that we don't have an assignment the expression is not flagged as rewritten. > I think it looks okay, but I'm not sure why the nested pattern would be a > RewritableExpression in the first place We use RewritableExpressions for two reasons: pattern rewriting (i.e., destructuring assignment) and non-pattern rewriting (spreads in expressions). The inner spread is wrapped in a RewritableExpression because when we parsed it we didn't know if it was a pattern or a non-pattern.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/build...) v8_linux64_gyp_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng_trigg...)
lgtm, thanks for the quick fix!
The CQ bit was checked by nikolaos@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by nikolaos@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Fix bug with nested spreads as patterns R=adamk@chromium.org, littledan@chromium.org BUG=v8:5337 LOG=N ========== to ========== Fix bug with nested spreads as patterns R=adamk@chromium.org, littledan@chromium.org BUG=v8:5337 LOG=N ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1)
Message was sent while issue was closed.
Description was changed from ========== Fix bug with nested spreads as patterns R=adamk@chromium.org, littledan@chromium.org BUG=v8:5337 LOG=N ========== to ========== Fix bug with nested spreads as patterns R=adamk@chromium.org, littledan@chromium.org BUG=v8:5337 LOG=N Committed: https://crrev.com/628e9e3eb85cea3cb7c9067b89a948298b021215 Cr-Commit-Position: refs/heads/master@{#39118} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/628e9e3eb85cea3cb7c9067b89a948298b021215 Cr-Commit-Position: refs/heads/master@{#39118} |