Closed aswinsvijay closed 10 months ago
One thing I'm worried about here is that without a certain
target
(ESNext
works,ES2017
doesn't),bigint
doesn't have avalueOf
attribute.
True, I could keep the bigint part as it was before, but that would affect the elegance of the solution. Well it's not a solution if it doesn't work for everything now, is it? 🤷♂️
I guess not - I'm more comfortable with the uglier code that we know works. Feels like we could trip ourselves up easily here.
One thing I'm worried about here is that without a certain
target
(ESNext
works,ES2017
doesn't),bigint
doesn't have avalueOf
attribute.