fix Incorrect destructuring compilation of `for (let [[x] = [1… (#11360)
This commit is contained in:
@@ -166,7 +166,7 @@ export default declare((api, options) => {
|
||||
let patternId;
|
||||
let node;
|
||||
|
||||
if (this.kind === "const") {
|
||||
if (this.kind === "const" || this.kind === "let") {
|
||||
patternId = this.scope.generateUidIdentifier(tempId.name);
|
||||
node = this.buildVariableDeclaration(patternId, tempConditional);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user