Global Environment display doesn't update for changes to nested objects/arrays
dchalmers opened this issue · 0 comments
dchalmers commented
if I have an array (or another object) nested in an object, and I make a change to that array using the REPL, then the change does not appear in the Global Environment display UNLESS I collapse/expand the object using the triangle.
Sample code:
var myObj = {
arr: [1,2,3],
fn: function (val) { this.arr.push(val) }
}
var arr2 = [1,2,3]
myObj.fn(4) // does not update the display in global environment unless you collapse/expand the surrounding object
arr2.push(4) // updates immediately in global environment