WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
31300
Error.prototype.message throws "Unknown error"
https://bugs.webkit.org/show_bug.cgi?id=31300
Summary
Error.prototype.message throws "Unknown error"
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug