Re: [heycam/webidl] Replace serializers by toJSON and [Default] extended attribute (#323)

tobie commented on this pull request.



> +        E implements I;
+    </pre>
+
+    Calling the <code>toJSON</code> method of an object
+    implementing interface `A` defined above
+    would return the following JSON object:
+
+    <pre highlight=json>
+    {
+        "w": "...",
+        "z": "...",
+        "u": "...",
+        "s": "...",
+        "x": "...",
+        "y": "..."
+    }

So we mostly agree, except you consider mixins happen after interface definition rather than before.

```webidl
interface A {
    attribute DOMString a;
};

interface B {
    attribute DOMString b;
};

A implements B;
```

Do we get `{a,b}` or `{b,a}`?

I don't think the spec is clear about that, tbh.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/323#discussion_r116630706

Received on Tuesday, 16 May 2017 00:23:07 UTC