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

Use less idents #94

Closed

Conversation

iunanua
Copy link
Collaborator

@iunanua iunanua commented Sep 3, 2024

What does this PR do?

When an ident argument is found use it instead of create a new ident and an assignation

Motivation

Additional Notes

Describe how to test your changes

Checklist

  • The CHANGELOG.md has been updated
  • Unit tests have been updated and pass
  • If known, an appropriate milestone has been selected

@iunanua iunanua changed the base branch from main to igor/rewrite-more-call-apply-expr September 3, 2024 10:30
@iunanua iunanua closed this Sep 3, 2024
@iunanua
Copy link
Collaborator Author

iunanua commented Sep 3, 2024

in some occasions we need to extract an ident. See:

// Assignment to captured parameters.
assertEquals(42, function(a,b) {
  arguments[1] = 11;
  return a + function(){ a = b; return a; }() + a;
}(20, 37), "captured assignment");





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

Successfully merging this pull request may close these issues.

1 participant