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

Ignore 'property' decorator when transpiling function decorators #729

Open
wants to merge 1 commit into
base: dev_fall_2019
Choose a base branch
from

Conversation

AlexECX
Copy link

@AlexECX AlexECX commented May 14, 2020

Change Summary

Like the classmethod and staticmethod decorators, the property decorator is handled differently from other decorators and is not 'stacked' in front of the function it decorates. That is unless you combine it with other decorators, in which case it is added to the stack and will cause errors at JS runtime.

This PR aims to exclude the property decorator from the decorator stack, just like classmethod and staticmethod already are.

Related issue number

Related to #658.

PR Checklist

  • Adapted tests
  • Passes tests
  • Documented changes

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