From 970a3c6dd3ca8fd33cff0fefea09bd525a4e3fca Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 5 Jun 2023 14:00:23 +0200 Subject: [PATCH] add bigint serialization --- backend/windmill-worker/src/worker.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 1a3795632e..f0509ec1f3 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -1507,6 +1507,10 @@ const args = await Deno.readTextFile("args.json") .then(JSON.parse) .then(({{ {spread} }}) => [ {spread} ]) +BigInt.prototype.toJSON = function () {{ + return this.toString(); +}}; + {dates} async function run() {{ let res: any = await main(...args);