k1r0s/kaop-ts

Babel tool throws TypeError when prototype isn't keep when constructor wrapping

k1r0s opened this issue · 0 comments

k1r0s commented

Even though V8 class implementation doesn't throw anything and wrapped constructor instances keep proto reference.

This error have anything to do with kaop-ts itself is just a requirement for babel since they don't have a better alternative to assure that instances are created using new keyword rather than invoking the constructor directly as harmony specs explicity point.

more info babel/babel#682