Skip to content
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

CryptoUtils.bytesToBase64 doesn't run under javascript compliled #17327

Closed
DartBot opened this issue Mar 7, 2014 · 3 comments
Closed

CryptoUtils.bytesToBase64 doesn't run under javascript compliled #17327

DartBot opened this issue Mar 7, 2014 · 3 comments
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

Comments

@DartBot
Copy link

DartBot commented Mar 7, 2014

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.

@sgjesse
Copy link
Contributor

sgjesse commented Mar 7, 2014

This doesen't happen for this simple program (running the minified output in d8).

import "package:crypto/crypto.dart";

main() {
  String post = CryptoUtils.bytesToBase64([1,2,3,4]);
  print(post);
}


Added Area-Dart2JS, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Mar 10, 2014

This comment was originally written by @brunoleguernic


It's true with CryptoUtils.bytesToBase64([1,2,3,4]);
but with the example, i attach. It's not good


Attachments:
formulaire_photo.dart (2.83 KB)
formulaire_photo.html (458 Bytes)

@floitschG
Copy link
Contributor

Sorry. This issue somehow fell through the cracks.

Do you still experience this issue?
If yes, could you provide an example that I can execute. The attached files are not self-contained.


Added NeedsInfo label.

@DartBot DartBot added Type-Defect web-dart2js needs-info We need additional information from the issue author (auto-closed after 14 days if no response) labels Jun 17, 2014
@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants