Hi, currently, enum are not handled correctly in overloaded methods: The check done is: The binding try to check if argument is an object of type whateverEnum. Instead, it should check if it's a string.
Created attachment 200220 [details] patch proposal
Can you give an example of how this will be used? Why do we want to use strings for enumerated values, instead of numbers?
> Why do we want to use strings for enumerated values, instead of numbers? Because it's speced: http://dev.w3.org/2006/webapi/WebIDL/#idl-enums > Can you give an example of how this will be used? arno: Enum is used more and more in the spec (but is poorly supported in WebKit and Blink), so your patch basically looks good. What use case do you have in mind?
(In reply to comment #3) > arno: Enum is used more and more in the spec (but is poorly supported in WebKit and Blink), so your patch basically looks good. What use case do you have in mind? the overloaded fill method of canvas2d: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#2dcontext
Comment on attachment 200220 [details] patch proposal This patch hasn't been touched in over 2.5 years, so I think we can go ahead and clear the review flag now.