From 2273fa8be5969997b682d9ccb9a4d68c7c1cab2f 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);