File tree 3 files changed +10
-2
lines changed
eslint-plugin-react-hooks
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -29533,6 +29533,9 @@ PERFORMANCE OF THIS SOFTWARE.
29533
29533
case "computed": {
29534
29534
return "[".concat(printPlace(key.name), "]");
29535
29535
}
29536
+ case "number": {
29537
+ return String(key.name);
29538
+ }
29536
29539
}
29537
29540
}
29538
29541
function printInstructionValue(instrValue) {
@@ -35935,6 +35938,8 @@ PERFORMANCE OF THIS SOFTWARE.
35935
35938
return { kind: "computed", name: place };
35936
35939
} else if (key.isIdentifier()) {
35937
35940
return { kind: "identifier", name: key.node.name };
35941
+ } else if (key.isNumericLiteral()) {
35942
+ return { kind: "identifier", name: String(key.node.value) };
35938
35943
}
35939
35944
builder.errors.push({
35940
35945
reason: "(BuildHIR::lowerExpression) Expected Identifier, got ".concat(
@@ -54070,6 +54075,9 @@ PERFORMANCE OF THIS SOFTWARE.
54070
54075
});
54071
54076
return expr;
54072
54077
}
54078
+ case "number": {
54079
+ return libExports.numericLiteral(key.name);
54080
+ }
54073
54081
}
54074
54082
}
54075
54083
function codegenArrayPattern(cx, pattern) {
Original file line number Diff line number Diff line change 1
- 02372952e4f24fa02dcb9b32af26cb2472617cef
1
+ 90b511ec7a9f2f3fd2b7f0039d8fc52c23f573a1
Original file line number Diff line number Diff line change 1
- 02372952e4f24fa02dcb9b32af26cb2472617cef
1
+ 90b511ec7a9f2f3fd2b7f0039d8fc52c23f573a1
You can’t perform that action at this time.
0 commit comments