Skip to content

dart:html - FileReader.result is Uint8List in Dartium but ByteBuffer via dart2js in Chrome after call to readAsArrayBuffer #15698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Dec 18, 2013 · 1 comment
Labels
closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Dec 18, 2013

This issue was originally filed by [email protected]


1.0.3_r30939
Windows 7x64

I have an instance of dart:html's FileReader, and I call readAsArrayBuffer on it.

In Dartium (vm) the reader.result getter returns an instance of Uint8List. When I compile the code via dart2js and run in Chrome (32.0.1700.41) the reader.result getter returns an instance of ByteBuffer, and I need to wrap that myself in a new Uint8List.

thanks,

@lrhn
Copy link
Member

lrhn commented Dec 18, 2013

This is a known bug in the VM.
The value of 'result' should be either a String, a ByteBuffer or null.
In the VM, Uint8List incorrectly implements ByteBuffer and is used in places where a ByteBuffer is required.


Added Duplicate label.
Marked as being merged into #10136.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

3 participants