Closed iroha7941 closed 3 years ago
Were you seeing a particular issue here? Theoretically, the code as written should work because we're adding properties to the object it should still be udpated in that array we added to. A simplified version of what's happening here
var a = [];
var o = {};
a.push(o);
o.foo = 5;
a[0].foo // 5
Ah, right. Sorry for my mistake, I'm still a Javascript noob and missed that a reference was being pushed. I'll just close tihs pull request. Thanks for the feedback, sorry for the trouble.
No worries. PRs like these have definitely found problems in the past, so, better to have it than not.
The previous code would set fields in currentUri and then immediately clear it, which was obviously wrong.