mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* parser: Add caret as topic reference (tests) * parser: Add caret as topic reference (implement) * generator: Avoid reconstructing validTopicTokenSet * babel-parser: Remove redundant throws in expression.js * Minimize diff * Update error message Co-authored-by: Nicolò Ribaudo <[email protected]>
10 lines
198 B
JavaScript
10 lines
198 B
JavaScript
const result = 5
|
|
|> Math.pow(^, 2)
|
|
|> [1, 2, 3].map(n => n + ^
|
|
|> ^ * 2
|
|
|> `${^} apples`
|
|
|> ^.toUpperCase())
|
|
|> ^.join();
|
|
|
|
expect(result).toEqual('52 APPLES,54 APPLES,56 APPLES');
|