New issue
Advanced search Search tips

Issue 923333 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Eager evaluation does not re-evaluate on page refresh

Reported by bu...@systemonesoftware.com, Jan 18 (4 days ago)

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce the problem:
1. Ensure eager evaluation is turned on
2. Create a variable like "const foo = 1" in the console
3. Then type "foo" to see the eager evaluated result
4. Go to another page

What is the expected behavior?
Either re-evaluates or stops showing the eager evaluated result

What went wrong?
It still shows the old eager evaluated result

Did this work before? N/A 

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 10.0
Flash Version:
 
bug2.gif
224 KB View Download

Comment 1 by susan.boorgula@chromium.org, Jan 20 (2 days ago)

Labels: Needs-Triage-M71

Comment 2 by swarnasree.mukkala@chromium.org, Yesterday (47 hours ago)

Cc: swarnasree.mukkala@chromium.org
Labels: Triaged-ET Needs-Feedback
Able to reproduce the issue on reported chrome on reported chrome version #71.0.3578.98 using Windows 10 by following steps as per comment#0 " bug2 .gif" file.

When tried testing the issue on chrome version #60.0.3112.113 found a bit different behavior. Observed that after refreshing the page the "foo" variable is not found in the console. When entered the "foo" in console observed same error (foo is not defined) which is seen in reported chrome.

Attached screencast for reference.
@reporter: Could you please review attached screencast and let us know if this can be considered as good or bad behaviour so that it would be really helpful in further triaging of the issue.
Thanks.!
923333.mp4
1.5 MB View Download

Comment 3 by bu...@systemonesoftware.com, Yesterday (44 hours ago)

Thank you for your reply.

I think the issue was misunderstood. The issue is regarding the eager evaluation feature, which was introduced in Chrome 68, so it could not happen in 60.

The issue isn't that "foo" stops existing (that is expected). It's that the eager evaluated result doesn't update to reflect that foo stopped existing. 

Note how in my gif, you can see the console settings that have "eager evaluation" enabled. Furthermore, note how after the "const foo = 12345", I type "foo" again but I don't press enter. It shows the "12345" as output anyway (i.e. it's eagerly evaluated) which is also expected.

On page refresh, "foo" will stop existing as expected, but the eager evaluated result will still show "12345", which is unexpected. My expectation is that it shouldn't show "12345" as the variable no longer exists. Then you can see that I press enter and get an error, which is expected. The error only shows that "foo" really doesn't exist. 

If I misunderstood your response, please let me know!


Project Member

Comment 4 by sheriffbot@chromium.org, Yesterday (44 hours ago)

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment