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

Can not compile class #61

Open
RonkTsang opened this issue Jan 2, 2020 · 1 comment
Open

Can not compile class #61

RonkTsang opened this issue Jan 2, 2020 · 1 comment

Comments

@RonkTsang
Copy link

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 ~

@andrei-markeev
Copy link
Owner

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

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

No branches or pull requests

2 participants