CryptoUtils.bytesToBase64 doesn't run under javascript compliled #17327
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
needs-info
We need additional information from the issue author (auto-closed after 14 days if no response)
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
This issue was originally filed by @brunoleguernic
What steps will reproduce the problem?
1.print(dataBytes);//for me it's a jpeg file
String post = CryptoUtils.bytesToBase64(dataBytes);
print(post);
2.Run as javaScript
3.see the Chrome "console" and result is:
for 1: Instance of 'WZ6'
for 2: Uncaught TypeError: Object #<WZ6> has no method 'gB'
for 3: Nothing
What is the expected output? What do you see instead?
With native dartium the result is good.
What version of the product are you using? On what operating system?
Window7 with the last version:Dart Editor version 1.2.0.release (STABLE)
Dart SDK version 1.2.0 build 33014 and crypto 0.9.0.
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: