Closed
Bug 420925
Opened 17 years ago
Closed 14 years ago
Incorrect error message when missing argument to map()
Categories
(Core :: JavaScript Engine, defect)
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: 14 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•14 years ago
|
||
Excellent.
You need to log in
before you can comment on or make changes to this bug.
Description
•