Re: [whatwg/webidl] PR changed the setlike `add` method to return the value that was added to the setlike object instead of the object itself. Was that an accident? (Issue #1268)

Ok yup that was clearly a bug on my part. The old spec had add/delete defined in a combined algo, and branched on the operation to figure out what the return value is (the set for add, the value for delete). When I split them apart I must have mistakenly used the same code for each; I probably copy-pasted the algos.

I'll fix in a PR.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1268#issuecomment-1438949298
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1268/1438949298@github.com>

Received on Tuesday, 21 February 2023 18:52:37 UTC