StarlingMonkey icon indicating copy to clipboard operation
StarlingMonkey copied to clipboard

Add native API for reporting an exception

Open andreiltd opened this issue 10 months ago • 4 comments

https://html.spec.whatwg.org/multipage/webappapis.html#report-an-exception

andreiltd avatar Apr 15 '25 13:04 andreiltd

@andreiltd is this different from the existing builtins::web::dom_exception::DOMException::raise?

tschneidereit avatar Jun 23 '25 12:06 tschneidereit

hi @andreiltd can i work on this seems like good first issue or do i need context ?

iamrajiv avatar Aug 06 '25 16:08 iamrajiv

hi @andreiltd can i work on this seems like good first issue or do i need context ?

Hey @iamrajiv , of course! Indeed it looks like a good first issue although, as Till mentioned, you will need to verify if the spec linked in this issue is different from the existing builtins::web::dom_exception::DOMException::raise. I'm also happy to help with whatever you need to land your first contribution.

andreiltd avatar Aug 07 '25 18:08 andreiltd

Hi @tschneidereit, I went through the code and the issue properly. I need to update things here, right? https://github.com/bytecodealliance/StarlingMonkey/blob/main/builtins/web/event/event-target.cpp#L558 Also, I need to make the builtins file too with the HTML spec algorithm.

iamrajiv avatar Aug 09 '25 20:08 iamrajiv