Debian Codegraph @

packages/babel-plugin-proposal-pipeline-operator/test/fixtures/minimal/async-arrow/exec.js

raw symbols SCIP
1 function then(fn) {
2 return async (value) => {
3 return fn(await value);
4 };
5 }
6
7 var result = 1
8 |> (async (x) => await x + 1)
9 |> then((x) => x + 1);
10
11 return result.then(val => {
12 expect(val).toBe(3);
13 });