babel-plugin-react-compiler 0.0.0-experimental-3229e95-20250317 → 0.0.0-experimental-7f3c872-20250318
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/dist/index.js +11 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -115430,6 +115430,9 @@ function printObjectPropertyKey(key2) {
|
|
115430
115430
|
case "computed": {
|
115431
115431
|
return `[${printPlace(key2.name)}]`;
|
115432
115432
|
}
|
115433
|
+
case "number": {
|
115434
|
+
return String(key2.name);
|
115435
|
+
}
|
115433
115436
|
}
|
115434
115437
|
}
|
115435
115438
|
function printInstructionValue(instrValue) {
|
@@ -119773,6 +119776,11 @@ function lowerObjectPropertyKey(builder, property) {
|
|
119773
119776
|
kind: "identifier",
|
119774
119777
|
name: key2.node.name
|
119775
119778
|
};
|
119779
|
+
} else if (key2.isNumericLiteral()) {
|
119780
|
+
return {
|
119781
|
+
kind: "identifier",
|
119782
|
+
name: String(key2.node.value)
|
119783
|
+
};
|
119776
119784
|
}
|
119777
119785
|
builder.errors.push({
|
119778
119786
|
reason: `(BuildHIR::lowerExpression) Expected Identifier, got ${key2.type} key in ObjectExpression`,
|
@@ -131129,6 +131137,9 @@ function codegenObjectPropertyKey(cx, key2) {
|
|
131129
131137
|
});
|
131130
131138
|
return expr;
|
131131
131139
|
}
|
131140
|
+
case "number": {
|
131141
|
+
return t4.numericLiteral(key2.name);
|
131142
|
+
}
|
131132
131143
|
}
|
131133
131144
|
}
|
131134
131145
|
function codegenArrayPattern(cx, pattern) {
|
package/package.json
CHANGED