Skip to content

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

@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.

1 participant