doc: fix history info for URL.prototype.toJSON

PR-URL: https://github.com/nodejs/node/pull/55818
Fixes: https://github.com/nodejs/node/issues/55806
Refs: https://github.com/nodejs/node/pull/11236
Refs: https://github.com/nodejs/node/pull/17365
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
Antoine du Hamel authored and Marco Ippolito committed 2025-01-24 22:18:40 +01:00
1 parent c14776fbaa
commit 79876f0dfd
1 file changed
+6
+6
View File
@@ -598,6 +598,12 @@ value returned is equivalent to that of [`url.href`][] and [`url.toJSON()`][].
#### `url.toJSON()`
<!-- YAML
added:
- v7.7.0
- v6.13.0
-->
* Returns: {string}
The `toJSON()` method on the `URL` object returns the serialized URL. The