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

dart:html : Entry.copyTo does not complete its future onSuccess #15960

Closed
DartBot opened this issue Jan 8, 2014 · 1 comment
Closed

dart:html : Entry.copyTo does not complete its future onSuccess #15960

DartBot opened this issue Jan 8, 2014 · 1 comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jan 8, 2014

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.

@iposva-google
Copy link
Contributor

Added Area-Dartium, Triaged labels.

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants