canjs / can-observable-mixin

Define properties on JavaScript classes
https://canjs.com
MIT License
2 stars 1 forks source link

Replace `new.target` with `this.constructor` #162

Closed marshallswain closed 3 years ago

marshallswain commented 3 years ago

This addresses two issues that occur when using new.target:

This change does mean that if somebody tries to extend the mixinProxy using Object.create, they will need to be sure to manually set the prototype correctly.