This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The specification for `add` and `put` are seemingly identical in the current working draft perhaps bar a typo referring to structured cloning. Are they intentionally identical? The naming suggests that `put` would be idempotent and add would _always_ create a new entry or error if it's not possible. If they are intentionally identical are two functions absolutely necessary?
Both methods say "[run] the steps for storing a record into an object store..." add() has: "...with the no-overwrite flag flag set to true." put() has: ...with the no-overwrite flag flag set to false." which is the crux of the difference between them. The operation steps later in the spec detail how the no-overwrite flag is interpreted. (I'm guessing you missed this. If so, no worries. If not, my apologies - what am *I* missing?)
No, I'd missed that detail. Apologies. Thanks for the very prompt response! :D