Bug 41600

Summary: Provide better error message for non-generic function type errors
Product: WebKit Reporter: Kent Hansen <kent.hansen>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: cmarcelo
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   

Kent Hansen
Reported 2010-07-05 03:25:23 PDT
o = { toString: Function.prototype.toString }; o.toString() produces "TypeError: Type error" It would be nice if the output was more descriptive; e.g. SpiderMonkey produces "TypeError: Function.prototype.toString called on incompatible object", and V8 produces "TypeError: Function.prototype.toString is not generic".
Attachments
Note You need to log in before you can comment on or make changes to this bug.