Bug 41600 - Provide better error message for non-generic function type errors
Summary: Provide better error message for non-generic function type errors
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P3 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 03:25 PDT by Kent Hansen
Modified: 2011-04-12 22:11 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Hansen 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".