Nookleptia / tiny-js

Automatically exported from code.google.com/p/tiny-js
0 stars 0 forks source link

How to use defined class on 42TinyJS? #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 zhoujr.m...@gmail.com on 31 Dec 2011 at 3:55

GoogleCodeExporter commented 9 years ago
see my commit from 31.12.2011
now it is fixed

Original comment by a...@ist-einmalig.de on 31 Dec 2011 at 5:20

GoogleCodeExporter commented 9 years ago

Original comment by ArminDie...@gmail.com on 31 Dec 2011 at 5:23