Closed Bug 353081 Opened 19 years ago Closed 15 years ago

Incorrect error message involving "new" and map in "case" expression

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

Testing with the "prep patch for plan A, v7b" from bug 346642. js> x=undefined; switch(x) { case 3: case (new ([3].map)): } typein:1: TypeError: x is not a function The error message is incorrect; I'm not trying to treat "x" as a function.
This bug still exists on trunk.
Bug 420925 might be related.
The error has changed on current trunk. js> x=undefined; switch(x) { case 3: case (new ([3].map)): } typein:1: TypeError: missing argument 0 when calling function [3].map
I think that's the correct error message. There's an implicit call due to the |new|, and |map| requires arguments. So WFM.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.