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

How to use defined class on 42TinyJS? #9

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments
Closed

How to use defined class on 42TinyJS? #9

GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

For example:
function Person(name) {
  this.name = name;
  this.kill = function() { this.name += " is dead"; };
}

var a = new Person("Kenny");
a.kill();

Why can't 42TinyJS support this usage?
And how can I do?

Original issue reported on code.google.com by [email protected] on 31 Dec 2011 at 3:55

@GoogleCodeExporter
Copy link
Author

see my commit from 31.12.2011
now it is fixed

Original comment by [email protected] on 31 Dec 2011 at 5:20

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 31 Dec 2011 at 5:23

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant