add bigint serialization

This commit is contained in:
Ruben Fiszel
2023-06-05 14:00:23 +02:00
parent 67b05d3871
commit 970a3c6dd3

View File

@@ -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);