- From: Adrian Hope-Bailie <notifications@github.com>
- Date: Wed, 23 Mar 2016 12:46:22 -0700
- To: w3c/browser-payment-api <browser-payment-api@noreply.github.com>
Received on Wednesday, 23 March 2016 19:46:49 UTC
@dlongley > If you use a dictionary that only defines the field x and you pass {"x": 1, "y": 2} to the API, then the y field gets removed. You can't add arbitrary other fields -- which means you can't easily extend the object. If that's the case then I agree with you. I am not a WebIDL expert but we need something along the lines of how a dictionary/map would work in higher level languages. My understanding is that an interface is even less flexible. Put differently, I agree that there is absolutely a requirement to be able to pass in fields that are not specified in the WebIDL definition of the object and expect those to be passed on/returned and not simply dropped. I think @adrianba suggested a new WebIDL type at some point which is likely our only workable solution. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/browser-payment-api/issues/9#issuecomment-200515494
Received on Wednesday, 23 March 2016 19:46:49 UTC