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
In Dartium (vm) the future never completes and 'HELLO' is not printed. Compiled via dart2js and run in Chrome 32 it completes just fine. Note that the entry is copied so the method works, it just does not complete the future so my continuation never executes.
This issue was originally filed by dev...@futureperfect.info
1.1.0.dev_04_00
Windows 7x64
I have some code that looks like:
_entry.copyTo(parent).then((html.Entry entry) {
print('HELLO');
...
In Dartium (vm) the future never completes and 'HELLO' is not printed. Compiled via dart2js and run in Chrome 32 it completes just fine. Note that the entry is copied so the method works, it just does not complete the future so my continuation never executes.
Looking at the code here: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/sdk/lib/html/dartium/html_dartium.dart
void _copyTo(DirectoryEntry parent, {String name, _EntryCallback successCallback, _ErrorCallback errorCallback}) {
if (name != null) {
_copyTo_1(parent, name, successCallback, errorCallback);
return;
}
_copyTo_2(parent);
return;
}
It looks like the callbacks get lost when going down the _copyTo_2 branch.
The text was updated successfully, but these errors were encountered: