Re: [w3c/payment-handler] Should PaymentInstruments.set() be immutable? (#285)

> I'm not sure but the I believe that instrument.set() will take a copy of capabilities object.

Spec does not say that object is cloned, serialized, etc. 
`8. Otherwise, insert the PaymentInstrument in details as a new member of the collection and associate it with the key instrumentKey`

@romandev If I remember correctly IDL dictionaries, primitives, sequences, etc., are passed by value, `object`s and interface objects by reference. Maybe someone could write WPT test, to make sure there are no side effects.

-- 
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/payment-handler/issues/285#issuecomment-380466017

Received on Wednesday, 11 April 2018 14:11:02 UTC