Closed Bug 420925 Opened 14 years ago Closed 11 years ago

Incorrect error message when missing argument to map()

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> [1,2,3,4].map()
typein:1: TypeError: [1, 2, 3, 4].map() is not a function

Expected: Something to the effect of "The first argument to Array.prototype.map must be a function" or "Not enough arguments to Array.prototype.map".

Might be related to bug 353081.
Today we get: "missing argument 0 when calling function [1, 2, 3, 4].map"
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Excellent.
You need to log in before you can comment on or make changes to this bug.