LivelyKernel / LivelyKernel/lively4-core

AE: Array method in AE freezes lively

Open
#412 0 comments 0 reactions 0 assignees View on GitHub
comp: active expressions effort2: medium (days) P4: nice to have type: bug
Dominant language
JavaScript
Stars
89
Forks
25
PR merge metrics
No merged PRs in 30d

Description

```javascript

import _ from 'src/external/lodash/lodash.js';
const options = [1, 2, 3];

aexpr(() => {
let x = 0;
options.forEach(y => x+=y);
lively.notify("x: " + x);
return x;
}).onChange(lively.notify);

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

Creating the hook triggers the AE Evaluation, which creates a hook and so on

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the JavaScript reproduction in the issue and tracing the AE evaluation and hook-creation path it describes. The fix is complete when creating the expression does not recursively create evaluations or freeze lively, while the array example can still update and notify.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.