Re: [File API] Calling requestFileSystem with bad filesystem type

On Fri, Oct 7, 2011 at 12:02 PM, Mark Pilgrim <pilgrim@google.com> wrote:
> What should this do?
>
> requestFileSystem(2, 100, successCallback); // assume successCallback
> is defined properly

requestFileSystem doesn't throw, so you should get an errorCallback
call.  You haven't provided an errorCallback, so you should get a
silent failure.

It does seem like an error we could identify quickly enough to throw,
though, and in general I favor fail-fast for obviously bad parameters.
 Opinions?

    Eric

Received on Wednesday, 2 November 2011 17:00:46 UTC