mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +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]>
14 lines
223 B
JavaScript
14 lines
223 B
JavaScript
const triple = (x) => x * 3;
|
|
|
|
async function myFunction(n) {
|
|
return n
|
|
|> Math.abs(^)
|
|
|> Promise.resolve(^)
|
|
|> await ^
|
|
|> triple(^);
|
|
}
|
|
|
|
return myFunction(-7).then(result => {
|
|
expect(result).toBe(21);
|
|
});
|