add bigint serialization

This commit is contained in:
Ruben Fiszel
2023-06-05 14:00:23 +02:00
parent 7d2b2c0a00
commit 2273fa8be5
+4
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);