File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
compiler/packages/babel-plugin-react-compiler/src/Optimization Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments