Re: [whatwg/streams] Specifying QueuingStrategies in WebIDL (#1005)

> For what it's worth, I would prefer to introduce a new Web IDL extended attribute for this, as it's pretty weird to have a getter that returns a function, instead of just having a function directly.

Yes, an extended attribute would make sense. In C++, the behaviour corresponds to a static method, but in the WebIDL world it's more like a normal method that doesn't take a `this` value. So perhaps if you annotate an ordinary method like `[NoThis]` then it would mostly appear like a normal method from JavaScript, but the bindings code would translate it to a call to a static method in C++.

-- 
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/streams/issues/1005#issuecomment-514494371

Received on Wednesday, 24 July 2019 06:11:25 UTC