If amount.currencySystem is not "urn:iso:std:iso:4217", terminate this algorithm.
via "check and canonicalize amount" and "check and canonicalize total". However, the places that rely on the two aforementioned algorithms are expecting them to throw.
Thus, we should change the spec text to:
If amount.currencySystem is not "urn:iso:std:iso:4217", throw a TypeError.
I'm aware that we are planning on probably ejecting currencySystem from the spec, but this would allow us to test support for it properly... so this change would be for completeness.
We have a few instances of things relying on:
via "check and canonicalize amount" and "check and canonicalize total". However, the places that rely on the two aforementioned algorithms are expecting them to throw.
Thus, we should change the spec text to:
I'm aware that we are planning on probably ejecting
currencySystem
from the spec, but this would allow us to test support for it properly... so this change would be for completeness.