Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objects referred by overwritten property are removed from output graph. #14

Open
akiou opened this issue Sep 21, 2017 · 1 comment
Open

Comments

@akiou
Copy link
Collaborator

akiou commented Sep 21, 2017

When I write the following program and the cursor position is at last line, there must be 3 array objects([1,2,3], [2,4,6], [1,4,9]) in the visualization pane created during the program execution. But, the second array object([2,4,6]) is not appeared in the pane.

let obj = new Object();
let arr = [1,2,3];

obj.arr = arr.map(e => e + e);
obj.arr = arr.map(e => e * e);
@akiou
Copy link
Collaborator Author

akiou commented Sep 21, 2017

This is because the object ids of the second array object([2,4,6]) and third array object([1,4,9]) are assigned 'new1-1-arr'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant