Bug 41600
| Summary: | Provide better error message for non-generic function type errors | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Kent Hansen <kent.hansen> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | cmarcelo |
| Priority: | P3 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | All | ||
Kent Hansen
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |