On Sat, Dec 1, 2012 at 2:48 AM, Henrik Skupin <[email protected]> wrote:

> Also why does `mozGetUserMedia(1, function() {}, function() {}' throw
> instead of calling the onErrorCallback as given by the spec?
>

Because "1" is not a valid WebIDL dictionary and WebIDL says to throw in
that case.

I think it's better to keep things as they are than to call the error
callback in that case. We don't want to break consistency with WebIDL. That
would create confusion for authors and also be more difficult to implement.

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to