Closed Bug 1604435 Opened 2 years ago Closed 2 years ago

Eager Evaluation creates variable as the user type

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(firefox73 fixed)

RESOLVED FIXED
Firefox 73
Tracking Status
firefox73 --- fixed

People

(Reporter: nchevobbe, Assigned: bhackett1024)

References

Details

Attachments

(1 file)

Steps to reproduce

  1. Make sure devtools.webconsole.input.eagerEvaluation is set to true
  2. Open the console
  3. Slowly, type var myTestVariable = 1; my

Expected results

The autocomplete popup isn't displayed (or after Bug 1604411 lands, we only have a completion text for myTestVariable).

Actual results

There are multiple values in the autocomplete, at most one per typed letter, i.e.

my
myT
myTe
myTes
myTest
myTestV
myTestVa
myTestVar
myTestVari
myTestVaria
myTestVariab
myTestVariabl
myTestVariable

This seems to indicate that the eager evaluation is actually declaring variables, which I don't think is something we want.

Assignee: nobody → bhackett1024
Status: NEW → ASSIGNED
Pushed by bhackett@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a1266665b89b
Include effectful offsets preceding the script's main offset, r=jimb.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 73
You need to log in before you can comment on or make changes to this bug.