Test case: ``` let myError = {name: "test"}; let el = document.createElement("div"); el.append("node"); let walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT, { get acceptNode() { throw myError; } }); walker.firstChild(); ``` Actual: TypeError is thrown Expected: myError is thrown WPT: https://github.com/web-platform-tests/wpt/pull/15122 WebIDL: https://heycam.github.io/webidl/#call-a-user-objects-operation (step 10.2) Both Firefox 68 and Chrome 76 throw correct error.
Created attachment 376350 [details] Patch
Comment on attachment 376350 [details] Patch r=me, as long as EWS is green
Comment on attachment 376350 [details] Patch Clearing flags on attachment: 376350 Committed r248708: <https://trac.webkit.org/changeset/248708>
All reviewed patches have been landed. Closing bug.
<rdar://problem/54334630>