Re: [whatwg/webidl] ObservableArray's "set the length"'s behavior with empty backing lists (Issue #1049)

indexToDelete becomes -1 (it is a JavaScript spec [mathematical number](https://tc39.es/ecma262/#sec-mathematical-operations), and so the loop does not run. I don't think there's any need to special case this.

I'll close since I think it's pretty clear given how numbers work... let me know if you disagree.

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

Received on Tuesday, 19 October 2021 20:46:06 UTC