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();

Even though I'm not a fan of the complicated serializer syntax, I do like the conciseness of just writing

```idl
serializer;
```

which is more parallel to the existing `iterable<USVString, USVString>;` for `URLSearchParams`.

-- 
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#pullrequestreview-19840121

Received on Thursday, 2 February 2017 17:17:53 UTC