Closed marcoscaceres closed 5 months ago
That would be nice given that JSON.stringify()
does not work on GeolocationCoordinates
.
Another question is if we should also add a toJSON()
method on GeolocationPosition
? I don't know if there is much value to getting the timestamp...
Less value but it would still feel weird if you could stringify the coordinates but not the full object passed to your callback so I say yes, let's add a toJSON()
method to both interfaces.
Sounds good.
Given
GeolocationCoordinates
are just nullable doubles, it would be nice if GeolocationCoordinates exposed a (WebIDL) default.toJSON()
method.