Open jakub-g opened 5 years ago
In Chrome 72:
> JSON.stringify(navigator.connection) {}
It seems useful to define standard .toJSON() on NetworkInformation as for example PerformanceEntry is doing, so that stringify shows something useful. https://www.w3.org/TR/performance-timeline-2/#dom-performanceentry-tojson
.toJSON()
NetworkInformation
PerformanceEntry
stringify
When toJSON is called, run [WebIDL]'s default toJSON operation.
In Chrome 72:
It seems useful to define standard
.toJSON()
onNetworkInformation
as for examplePerformanceEntry
is doing, so thatstringify
shows something useful. https://www.w3.org/TR/performance-timeline-2/#dom-performanceentry-tojson