Bug 31300
| Summary: | Error.prototype.message throws "Unknown error" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | kangax <kangax> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac (Intel) | ||
| OS: | OS X 10.6 | ||
kangax
`Error.prototype.message` is specified to be an "implementation dependent string" (see 15.11.4.3 in ES3 specs). However, in webkit, even plain "message" property access on `Error.prototype` results in an error.
I mentioned it in http://thinkweb2.com/projects/prototype/sputniktests-web-runner/#error-prototype-message among other failures.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Do you have a test case? When I try "javascript:alert(Error.prototype.message)" in address bar, I get an "Unknown error" alert, which is definitely an example of implementation defined string.
kangax
Alexey, sorry for the confusion.
I'm an idiot; somehow thought that it is an actual error being thrown. Now I see that `Error.prototype.message === "Unknown error"`.