Closed Bug 1540149 Opened 6 years ago Closed 6 years ago

Deprecation warning in webconsole.js

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

Attachments

(1 file)

When opening the console, I see the following warning message in the Browser Console:

Array.map is deprecated; use Array.prototype.map instead | resource://devtools/server/actors/webconsole.js:1705:33

There's 3 places we use Array.map directly: https://searchfox.org/mozilla-central/rev/ddd1679c0534f7ddf36cafddd17b710c4fefe3c4/devtools/server/actors/webconsole.js#1705,1710,1715

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED

Array.map triggers a deprecation warnings, and it
turns out we can use .map directly on the objects
we were calling Array.map on.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b0059259e9ab Don't use `Array.map` in `prepareConsoleMessageForRemote`. r=bgrins.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: