Kevin Gibbons

Results 910 comments of Kevin Gibbons

Calling `.addAbortCallback(yourCleanupFunction)` works just as well as using a symbol; arbitrary objects can have a method named `"addAbortCallback"`. There's no need to introduce a new symbol here. The main reasons...

So the only difference between what you're proposing and what's in this PR already is just that instead of the new method returning `undefined` it would return an object with...

Yes, the idea is that ECMAScript would literally use the new method added in this PR (i.e., it will just attempt to call `addAbortCallback` on whatever object is passed). If...

> There are lot of places in the spec where property bags have "at least one of" constraints (eg. either `month` _or_ `monthCode` is mandatory for a DateLikeObject), which can't...

Yup, that's definitely wrong. Editors share your lack of urgency about this. That said, documenting the fact that these and other operations can throw because of real-world resources limitations probably...

As it says in the OP, @rbuckton has [argued against this](https://github.com/whatwg/html/issues/8557#issuecomment-1724193449) because he wants some way to mark an AbortController as "closed but not aborted" and remove all callbacks, and...

I'm only personally advocating for the second case. I am neutral between making this the default behavior of `AbortController` vs adding a new subclass. Getting a `.abort` when you don't...

Used but not defined, so still reasonable to define it here I think (and if it were defined in the spec we could have a link from our glossary here...

These are very far from throwing for as many operations as possible. Try using a revoked Proxy object to see what throwing for as many JS operations as possible looks...

I don't think this is a bug, precisely, in that it is not a violation of the object invariants. I do think it's very counterintuitive even from the perspective of...