Unfortunately that doesn't work for me...

Running a commit or clone passes over the "content is chrome.ArrayBuffer"
and hits the else throw.
I think there is some confusion inside Dart as to what exactly a
chrome.ArrayBuffer is...
Is there any harm in doing the Uint8List.fromList(content.getBytes()) in
the getShaForEntry so we don't have this problem (see my pull request)?

Cheers,
Cam

@: camandco@gmail.com
@2: 20517617@student.uwa.edu.au
Web: http://www.camandco.com
Google Profile: http://bit.ly/zXfkB


On Thu, Feb 6, 2014 at 5:00 AM, Devon Carew <notifications@github.com>wrote:

> In ide/app/lib/git/utils.dart:
>
> >    if (content is Uint8List) {
> >      size = content.length;
> >    } else if (content is Blob) {
> >      size = content.size;
> >    } else if (content is String) {
> >      size = content.length;
> > +  } else if (content is chrome.ArrayBuffer) {
>
> I think @camfitz <https://github.com/camfitz>, you, and I all found and
> fixed this at around the same time! I ran into this when implementing
> status in the UI.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/dart-lang/spark/pull/998/files#r9470577>
> .
>