You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dart Editor
Version 0.1.0.201208131139, Build 10597
Dart SDK version 10595
Chromium
Version 23.0.1234.0 (151225)
Given the following code:
#import('dart:html'); // Things to show:
// Autocomplete
class Ninja { // Jump to definition
void attack() { // Static typing
showMessage("My sword is deadly!"); // Rename
} // Dartium
} // Debugging
// Compiling to JavaScript
class Pirate {
void attack() {
showMessage("Arrr! You're already dead!");
}
}
void main() {
var warriors = [new Ninja(), new Pirate()];
for (var warrior in warriors) {
warrior.attack();
}
var ninja = new Ninja();
ninja.attack();
}
void showMessage(String message) {
var div = query('#text');
div.text = "${div.text} $message";
}
If you add a breakpoint on "var ninja = new Ninja();" and then run the app, Dartium will crash with an "Aw, snap!" message. It works if you put the breakpoint on other lines. I suspect it may have to do with the fact that Ninja has a default constructor.
The text was updated successfully, but these errors were encountered:
I couldn't reproduce this crash. Could you please check with the latest version? If it still crashes for you, please provide about:version page contents.
This issue was originally filed by [email protected]
Dart Editor
Version 0.1.0.201208131139, Build 10597
Dart SDK version 10595
Chromium
Version 23.0.1234.0 (151225)
Given the following code:
#import('dart:html'); // Things to show:
// Autocomplete
class Ninja { // Jump to definition
void attack() { // Static typing
showMessage("My sword is deadly!"); // Rename
} // Dartium
} // Debugging
// Compiling to JavaScript
class Pirate {
void attack() {
showMessage("Arrr! You're already dead!");
}
}
void main() {
var warriors = [new Ninja(), new Pirate()];
for (var warrior in warriors) {
warrior.attack();
}
var ninja = new Ninja();
ninja.attack();
}
void showMessage(String message) {
var div = query('#text');
div.text = "${div.text} $message";
}
If you add a breakpoint on "var ninja = new Ninja();" and then run the app, Dartium will crash with an "Aw, snap!" message. It works if you put the breakpoint on other lines. I suspect it may have to do with the fact that Ninja has a default constructor.
The text was updated successfully, but these errors were encountered: