curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler
https://github.com/curiosity-ai/h5
Apache License 2.0
210 stars 30 forks source link

No longer add TimeSpan to the $jsonGuard of H5.Newtonsoft.Json #89

Closed dlemstra closed 1 year ago

dlemstra commented 1 year ago

It looks like the check on type in the SerializeObject method of H5.Newtonsoft.Json is missing a check for TimeSpan. This PR adds this check to make sure that TimeSpan values are not added to the guard.