Skip to content

Commit 9483aec

Browse files
committed
Fix linter issues
1 parent 7ae1332 commit 9483aec

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

compiler/packages/babel-plugin-react-compiler/src/Optimization/ConstantPropagation.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,14 @@ function evaluateInstruction(
555555
return null;
556556
}
557557

558-
// Spec states that concat calls ToString(argument) internally on its parameters
559-
// -> we don't have to implement ToString(argument) ourselves and just use the engine implementation
560-
// Refs: https://tc39.es/ecma262/2024/#sec-tostring
561-
// https://tc39.es/ecma262/2024/#sec-string.prototype.concat
562-
// https://tc39.es/ecma262/2024/#sec-template-literals-runtime-semantics-evaluation
558+
/*
559+
* Spec states that concat calls ToString(argument) internally on its parameters
560+
* -> we don't have to implement ToString(argument) ourselves and just use the engine implementation
561+
* Refs:
562+
* - https://tc39.es/ecma262/2024/#sec-tostring
563+
* - https://tc39.es/ecma262/2024/#sec-string.prototype.concat
564+
* - https://tc39.es/ecma262/2024/#sec-template-literals-runtime-semantics-evaluation
565+
*/
563566
resultString = resultString.concat(expressionValue as string, suffix);
564567
}
565568

0 commit comments

Comments
 (0)