| 1 | // Template literal constant folding uses format_js_number to convert |
| 2 | // numbers to strings. Without the shared implementation, large numbers |
| 3 | // may format incorrectly (e.g. 1e21 as "1e21" instead of "1e+21"). |
| 4 | |
| 5 | function Component() { |
| 6 | const x = `value is ${1e21}`; |
| 7 | return <div>{x}</div>; |
| 8 | } |