We need to check the entire chain, since the first JSClassRef may not be the one with the convertToType callback.
Created attachment 117054 [details]
Comment on attachment 117054 [details]
WebKit coding style requires more braces around those if statement bodies. We only omit them when the body is 1-line, not 1-statement-over-multiple-lines.
Committed r101539: <http://trac.webkit.org/changeset/101539>