tronsoft / tiny-js

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

Error on class definition #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi, 42Tiny JS:

why the statements below can pass on trunk, but not on your branch?

var sArr = new Array();

I can only do so.

var sArr = [];

But how can I define my own classes?

function CMyClass(){}
var sMine = new CMyClass();

Waiting for your answer, thanks.

Original issue reported on code.google.com by zhoujr.m...@gmail.com on 30 Dec 2011 at 11:40

GoogleCodeExporter commented 9 years ago
i think in my last commit it is fixed.
please check it out

ardi

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

GoogleCodeExporter commented 9 years ago

Original comment by ArminDie...@gmail.com on 2 Feb 2012 at 8:49