LivelyKernel / lively4-core

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

AE Arrays do not support changes on indexed members (and for each loops) #411

Open Markus-Brand opened 3 years ago

Markus-Brand commented 3 years ago

const options = [1, 2, 3];

aexpr(() => {
  let x = 0;
  /**/for(const y of options) {
    x += y;
  }/*/
  for(let i = 0; i < options.length; i++) {
    x += options[i];
  }/**/
  lively.notify("x: " + x);
  return x;
}).onChange(lively.notify);

options[0]++;
options.values()```