Closed Bug 1647026 Opened 5 years ago Closed 5 years ago

Array.fill is executed on the array during preview

Categories

(DevTools :: Console, defect)

78 Branch
defect

Tracking

(firefox79 verified)

VERIFIED FIXED
Firefox 79
Tracking Status
firefox79 --- verified

People

(Reporter: luk.philippe, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

type the following in the console
var x = [1,2,3]\n
x.fill() // without pressing enter

Actual results:

x is now [undefined, undefined undefined]

Expected results:

x should keep the original value

Status: UNCONFIRMED → NEW
Component: Untriaged → Console
Ever confirmed: true
Product: Firefox → DevTools
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/81ed5bedd083 Disallow Array.prototype.fill in eager evaluation. r=loganfsmyth
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 79
QA Whiteboard: [qa-79b-p2]

Reproduced the issue using Firefox 79.0a1 (20200619215130) on Windows 10x64.
The issue is verified fixed with Firefox 79.0 (20200720193547) on Windows 10x64 and macOS 10.12.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: