Bug 31300

Summary: Error.prototype.message throws "Unknown error"
Product: WebKit Reporter: kangax <kangax>
Component: JavaScriptCoreAssignee: 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
Reported 2009-11-10 09:15:08 PST
`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
Alexey Proskuryakov
Comment 1 2009-11-10 22:28:26 PST
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
Comment 2 2009-11-11 05:07:56 PST
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"`.
Note You need to log in before you can comment on or make changes to this bug.