| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 89a306b commit 3acc89f
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,7 @@ | |||
| 33 | 33 | ||
| 34 | 34 | # Reset this number to 0 on major V8 upgrades. | |
| 35 | 35 | # Increment by one for each non-official patch applied to deps/v8. | |
| 36 | - 'v8_embedder_string': '-node.57', | ||
| 36 | + 'v8_embedder_string': '-node.58', | ||
| 37 | 37 | ||
| 38 | 38 | # Enable disassembler for `--print-code` v8 options | |
| 39 | 39 | 'v8_enable_disassembler': 1, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2977,13 +2977,13 @@ ParserBase<Impl>::ParseAssignmentExpression(bool accept_IN, bool* ok) { | |||
| 2977 | 2977 | // This is definitely not an expression so don't accumulate | |
| 2978 | 2978 | // expression-related errors. | |
| 2979 | 2979 | productions &= ~ExpressionClassifier::ExpressionProduction; | |
| 2980 | + ValidateAssignmentPattern(CHECK_OK); | ||
| 2980 | 2981 | } | |
| 2981 | 2982 | ||
| 2982 | 2983 | Accumulate(productions); | |
| 2983 | 2984 | if (!Token::IsAssignmentOp(peek())) return expression; | |
| 2984 | 2985 | ||
| 2985 | 2986 | if (is_destructuring_assignment) { | |
| 2986 | - ValidateAssignmentPattern(CHECK_OK); | ||
| 2987 | 2987 | } else { | |
| 2988 | 2988 | expression = CheckAndRewriteReferenceExpression( | |
| 2989 | 2989 | expression, lhs_beg_pos, scanner()->location().end_pos, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,6 @@ | |||
| 1 | + // Copyright 2018 the V8 project authors. All rights reserved. | ||
| 2 | + // Use of this source code is governed by a BSD-style license that can be | ||
| 3 | + // found in the LICENSE file. | ||
| 4 | + | ||
| 5 | + function f(x) { } | ||
| 6 | + f(x=>x, [x,y] = [1,2]); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments