andrei-markeev/ts2c

Can not compile class

RonkTsang opened this issue · 1 comments

I try some code in playground, and I get a Error when I try to write class.

// code:
function A() {
  this.a = 2
}

A.prototype.change = function () {
  this.a = 3
}

and I got the Error:

Transpilation failed. TypeError: Cannot read property 'length' of undefined

This project is cool ~

prototype is not yet supported. Currently finalizing closures, probably prototypes will be the next step after that.