Re: [w3c/browser-payment-api] The myth of JSON-serializable object (#307)

> See thread starting at https://lists.w3.org/Archives/Public/public-script-coord/2016OctDec/0071.html if you haven't seen it yet.

Ah!  I saw the post but somehow thought there weren't any replies yet (damn I hate the hypermail UI).  Sorry for the noise.

> To be clear, the way I would spec this is that the spec algorithm just calls JSON.stringify on the "data". If that throws, propagate out the exception. Then hand around the string.

I had avoided that proposal because I thought it would be a potential interop issue since it's impossible to test that the UA is actually discarding all the non-serializable properties.  But that's probably a silly concern - easy to satisfy via code inspection.  So I agree - that's a much better proposal than what I was suggesting.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/307#issuecomment-263954994

Received on Wednesday, 30 November 2016 18:33:57 UTC