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

Handle @property redefinition in subclasses #728

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

Redefining a @property in a subclass will cause the transpiled code to raise a TypeError: Cannot redefine property error in javascript. This PR adds the configurable attribute to @property descriptors, allowing them to be redefined by Object.defineProperty.

Related issue number

Related to #690.

PR Checklist

  • Adapted tests
  • Passes tests
  • Documented changes

Sorry, something went wrong.

@AlexECX AlexECX changed the title Handle property redefinition in subclasses Handle @property redefinition in subclasses May 14, 2020
@AlexECX AlexECX force-pushed the Handle-property-redefinition-in-subclasses branch 2 times, most recently from 23c31e3 to 0598f21 Compare May 14, 2020 18:46
@AlexECX AlexECX changed the base branch from master to dev_fall_2019 May 14, 2020 18:47
@AlexECX AlexECX force-pushed the Handle-property-redefinition-in-subclasses branch from 0598f21 to d0b6188 Compare May 14, 2020 19:50
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.

None yet

1 participant