Re: Why no TypeError in FileReaderSync.readAsArrayBuffer

On Nov 11, 2013, at 11:08 AM, Tab Atkins Jr. wrote:

> On Mon, Nov 11, 2013 at 5:57 AM, Arun Ranganathan <arun@mozilla.com> wrote:
>> In this particular case, I think it's the right behavior: FileReaderSync
>> expects a valid File or Blob reference, and isn't able to identify one, so
>> says one isn't found.
> 
> No, NotFoundError is for when some search is unsuccessful but
> necessary.  Looking at the type of an argument doesn't seem like a
> search without a *lot* of stretching.  It's a TypeError, if you're
> going to throw anything.
> 

You're right, a TypeError is less of a stretch.

This should be a browser bug, though.

-- A*



> ~TJ
> 

Received on Tuesday, 12 November 2013 04:38:49 UTC