Re: Why no TypeError in FileReaderSync.readAsArrayBuffer

On Mon, Nov 11, 2013 at 5:57 AM, Arun Ranganathan <> 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.


Received on Monday, 11 November 2013 16:09:13 UTC