-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throw on dup shippingOptions ids #596
Conversation
Ok, it's Friday... but this strikes me as a pretty big spec bugs. I kept hitting this problem when testing in Chrome, and I thought maybe it was a bug in Chrome... but it's clearly a bunch of spec bugs. See the linked bugs for example code you can run locally. It shows the problems pretty clearly (specially when you get into the "I can't ship to you" infinite loop where neither the developer or the user know what is going on! 💥 🔥🚨 😱 💩). |
Thanks, @marcoscaceres for unearthing these points. |
index.html
Outdated
<var>option</var>.<a>id</a>, then set <var>options</var> | ||
to an empty sequence and break. | ||
<var>option</var>.<a>id</a>, then throw a | ||
"<a>ConstraintError</a>" <a>DOMException</a>. Optionally, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be TypeError
index.html
Outdated
"PaymentShippingOption.id">id</a>, then set | ||
<var>options</var> to an empty sequence and break. | ||
"PaymentShippingOption.id">id</a>, then <a>abort | ||
the update</a> with a "<a>ConstraintError</a>" <a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above, TypeError
As discussed: agree with throwing on duplicate IDs but not on allowing empty shipping options. |
So, we agreed on the developer call to throw on duplicate IDs - but keep "empty shipping options is error" |
53a980b
to
f3dba8c
Compare
Blocked on test review. |
updateWith()
- should throw! #594)Required tests:
Preview | Diff