LivelyKernel / lively4-core

A Self-supporting, Web-based Development Environment
https://lively-kernel.org/lively4/lively4-core/start.html
MIT License
73 stars 25 forks source link

Enable newer JavaScript syntax #385

Open onsetsu opened 4 years ago

onsetsu commented 4 years ago

Currently, we are a bit behind the browser implementations, which seems wrong to me.

E.g. the following code can be parsed and executed in Blink DevTools but not in a workspace.

class Timer2 {
  start = Date.now();
  current = Date.now();

  tick() {
    this.current = Date.now();
  }
}

I think we should come up with some future-prove solution here: How to do this knowing never syntax extensions wont stop coming?