(_, value, ctx)
| 1052 | let called = 0; |
| 1053 | const app = new Application({ |
| 1054 | jsonBodyReplacer(_, value, ctx) { |
| 1055 | assert(ctx); |
| 1056 | called++; |
| 1057 | return typeof value === "bigint" |
| 1058 | ? { __bigint: value.toString(10) } |
| 1059 | : value; |
| 1060 | }, |
| 1061 | }); |
| 1062 | app.use(async (ctx) => { |
| 1063 | ctx.response.body = { a: 123456n }; |