Closed Bug 898671 Opened 11 years ago Closed 10 years ago

Calling NumericType<T>::call with invalid arguments causes crash

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bbenvie, Unassigned)

References

Details

> uint8() // crash

When encountering invalid arguments, NumericType<T>::call attempts to create an error string using the callee's name, which apparently is never set anywhere, causing JS_EncodeString to throw.
As of today:

js> TypedObject.uint8()   
typein:5:0 TypeError: Scalar requires more than 0 arguments
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.