neonious / lowjs

A port of Node.JS with far lower system requirements. Community version for POSIX systems such as Linux, uClinux or Mac OS X.
http://www.lowjs.org/
Other
1.27k stars 72 forks source link

Is class a supported construct? I am getting following error #164

Closed jdesai61 closed 1 year ago

jdesai61 commented 1 year ago
#cat a.js
class Car {
  constructor(name, year) {
    this.name = name;
    this.year = year;
  }
}
let c1 = new Car("Model", 2023)

SyntaxError: parse error (line 1) at [anon] (/home/user/a.js:1) internal at [anon] (deps/duktape/src-low/duktape.c:71399) internal

jdesai61 commented 1 year ago

Never mind. With transcription, this is working... Sorry I am new to JS world.