dart2js StringBuffer not good for Android webview #11414
Labels
closed-obsolete
Closed as the reported issue is no longer relevant
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
web-dart2js
This issue was originally filed by zeljko.kunica@gmail.com
What steps will reproduce the problem?
What is the expected output? What do you see instead?
JS should work.
Code breaks on StringBuffer saying "Uncaught SyntaxError: Unexpected token else at ..."
The problem is in do - while loop followed by else statement. while should not end with ;, at least for android web view
if (separator.length === 0)
do {
str = iterator._liblib0$_current;
str = typeof str === "string" ? str : $.S(str);
this._contents = this._contents + str;
} while (iterator.moveNext$0()); <---- problem
else {
What version of the product are you using? On what operating system?
Dart SDK 0.5.20.3_r24216
Android emulator 4.0.3
Please provide any additional information below.
The workarount is to delete ; manualy after each js generation
The text was updated successfully, but these errors were encountered: