Re: [geolocation-api] Addition: expose .toJSON() on GeolocationCoordinates + GeolocationPosition (#147)

I'm writing up the "Intent to Prototype and Ship" email for the Blink launch process and I just want to make sure I understand the motivation for this change. Are tests planning to use `JSON.stringify()` or is it that much easier to compare objects when they are "plain old JavaScript objects" than when they are instances of a WebIDL interface?

I noted when I was writing tests for this change in Chromium that the output of `JSON.stringify()` is not well defined (due to property order) so it doesn't seem appropriate for tests.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/geolocation-api/pull/147#issuecomment-2050762401 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 April 2024 00:29:49 UTC