The TreeWalker DOM spec says that an exception thrown inside the NodeFilter should propagate out to the caller. We should add a test for this.
Created attachment 65200 [details] Patch
Comment on attachment 65200 [details] Patch r=me, you could also test the raw function case for completeness.
http://trac.webkit.org/changeset/65928