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

Setter call produces wrong value #541

Closed
kasperl opened this issue Nov 21, 2011 · 3 comments
Closed

Setter call produces wrong value #541

kasperl opened this issue Nov 21, 2011 · 3 comments
Assignees
Milestone

Comments

@kasperl
Copy link

kasperl commented Nov 21, 2011

Frog compiles this Dart code:

  main() {
    var x = { "f": 42 };
    return x["f"] = 87;
  }

to this JavaScript code:

  function main() {
    var x = $map(["f", 42]);
    return x.$setindex("f", 87);
  }

but according to the spec it needs to return ignore the result of calling the setter (which is undefined/null at the moment) and return the value (87) instead.

@dgrove
Copy link
Contributor

dgrove commented Nov 29, 2011

Added this to the FrogEditor milestone.

@sigmundch
Copy link
Member

Set owner to @sigmundch.

@sigmundch
Copy link
Member

fixed in r2108


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants