Re: [whatwg/url] Define URL's toJSON() (#229)

TimothyGu commented on this pull request.



> @@ -2483,6 +2483,8 @@ interface URL {
            attribute USVString search;
   [SameObject] readonly attribute URLSearchParams searchParams;
            attribute USVString hash;
+
+  USVString toJSON();

Indeed, I haven't thought of that. How about `serializer<USVString>;`? It also has the advantage of being more language-independent, while there are precedents for `<>` meaning "produces" with `iterable`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/pull/229

Received on Thursday, 2 February 2017 18:40:21 UTC