Debian Codegraph @

packages/babel-plugin-proposal-pipeline-operator/test/fixtures/hack-percent/pipe-body-with-await/exec.js

raw symbols SCIP
1 function triple (x) {
2 return x * 3
3 }
4
5 async function asyncFunction(n) {
6 return n
7 |> Math.abs(%)
8 |> await Promise.resolve(%)
9 |> triple(%);
10 }
11
12 asyncFunction(-7).then(result => {
13 expect(result).toBe(21);
14 });