liriliri / eruda

Console for mobile browsers
https://eruda.liriliri.io
MIT License
18.64k stars 1.2k forks source link

Counsel does not show accurate logs #403

Closed SaravananRamanathan closed 2 months ago

SaravananRamanathan commented 10 months ago

Snippet to recreate the issue:

const friends = ['one', 'two', 'three']
const newLength = friends.push('four');
console.log(friends)

friends.unshift('zero')
console.log(friends)

friends[friends.length] = 'five'
console.log(friends)

for the above snippet, the expected log is (and this is the displayed correct in the Firefox dev counsel): Screenshot 2023-11-16 at 10 43 01 AM

Eruda, counsel displays the log as following: Screenshot 2023-11-16 at 10 44 27 AM

it seems to show the latest `friends` array value for all 3 logs

Mazedotexe commented 8 months ago

Wow, what an interesting bug! I wonder what causes this.

surunzi commented 2 months ago

Turn off "Asynchronous Rendering" in settings and it will be the same.