WICG / direct-sockets

Direct Sockets API for the web platform
Other
364 stars 14 forks source link

constructor() method buffer sizes #50

Closed vapier closed 1 year ago

vapier commented 2 years ago

the spec currently says:

If options["sendBufferSize"] is equal to 0, throw a TypeError. If options["receiveBufferSize"] is equal to 0, throw a TypeError.

shouldn't those be less than or equal to 0 ?

reillyeon commented 2 years ago

The [EnforceRange] attribute on those properties is good enough to make sure that the parameter isn't negative, but we need additional steps to ensure it is non-zero.