Re: [heycam/webidl] Guidance requested on specifying an unusual pattern from Streams in Web IDL (#819)

Fundamentally, Web IDL already has a concept of functions that do not do a brand-check on `this`: static operations.

The difference is that in this cases we want to have a static operation on the prototype, not on the constructor, right?

I don't think there's a fundamental problem with this in general, apart from the added burden on spec authors of now trying to decide whether their statics should live on the prototype or the constructor, right?  That said, is there a reason this specific property should live on the prototype, not the constructor, if it does not operate on instances?

In terms of how to accomplish this, syntax-wise, simplest is probably adding something to skip the brand check to non-static operations.... That's assuming we really do want to do this. 

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

Received on Friday, 13 March 2020 18:56:47 UTC