Re: [heycam/webidl] Allow overload resolution to "round down"? (#581)

That's fair.  The set of APIs this would currently matter for in Gecko (the set of APIs where there are gaps of at least 2 in argument list lengths) is:

* CanvasDrawImage's drawImage
* CanvasImageData's putImageData
* HTMLInputElement's setRangeText
* HTMLTextAreaElement's setRangeText
* OfflineAudioContext's constructor
* RTCPeerConnection's setLocalDescription
* RTCPeerConnection's setRemoteDescription
* RTCPeerConnection's addIceCandidate
* WebGL2RenderingContextBase's texImage2D
* WebGL2RenderingContextBase's texSubImage2D
* WebGLRenderingContext's texImage2D
* WebGLRenderingContext's texSubImage2D
* WindowOrWorkerGlobalScope's createImageBitmap

plus the Document.open case we're discussing here.  I haven't had a chance to go through those APIs yet to see what they actually look like.  But to take an example, if someone does:

    createImageBitmap(source, 0, 0, 5);

do we think that throwing is worse than ignoring the numbers completely and silently doing something that's probably not what the author was trying for?

-- 
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/581#issuecomment-453560993

Received on Friday, 11 January 2019 15:49:31 UTC