From e56265cc1827bfc529412e934af9e61de0a5741a Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 13 Nov 2024 16:47:28 +0000 Subject: [PATCH] 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 Reviewed-By: Luigi Pinca Reviewed-By: Yagiz Nizipli --- doc/api/url.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/api/url.md b/doc/api/url.md index 60e9a02bd6c61a..56fb57aa68858a 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -600,6 +600,12 @@ value returned is equivalent to that of [`url.href`][] and [`url.toJSON()`][]. #### `url.toJSON()` + + * Returns: {string} The `toJSON()` method on the `URL` object returns the serialized URL. The