We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setTimeout(function(){})
Step 7.2 of https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timer-initialisation-steps says "Invoke the Function." but doesn't call https://html.spec.whatwg.org/multipage/webappapis.html#report-the-exception, i.e. setTimeout(function(){throw new Error();}) doesn't fire global object's error events.
setTimeout(function(){throw new Error();})
Given that:
setTimeout("throw new Error();");
setTimeout(function)
setTimeout(string)
Invoke
#report-the-exception
#report-the-exception is needed here. I'm preparing a PR.
The text was updated successfully, but these errors were encountered:
Report the exception in timer + Function
0826e40
Fixes whatwg#5895.
Use report the exception for functions passed to timer methods
efeaf6f
Fixes #5895.
3ac6812
Successfully merging a pull request may close this issue.
Step 7.2 of https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timer-initialisation-steps says "Invoke the Function." but doesn't call https://html.spec.whatwg.org/multipage/webappapis.html#report-the-exception, i.e.
setTimeout(function(){throw new Error();})
doesn't fire global object's error events.Given that:
setTimeout("throw new Error();");
triggers #report-the-exception (from https://html.spec.whatwg.org/multipage/webappapis.html#run-a-classic-script)setTimeout(function)
andsetTimeout(string)
cases, as observed in https://wpt.fyi/results/html/webappapis/scripting/events/event-handler-processing-algorithm-error/window-runtime-error.html?label=experimental&label=master&aligned and https://wpt.fyi/results/workers/interfaces/WorkerGlobalScope/onerror/exception-in-onerror.html?label=experimental&label=master&alignedInvoke
explicitly call#report-the-exception
whenInvoke
throws.#report-the-exception
is needed here. I'm preparing a PR.The text was updated successfully, but these errors were encountered: