-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
In non async code, when overrunning the stack, we get a clear error. But when the code is async, the code fails silently.
Given the following code:
addEventListener('fetch', () => {
foo();
});
function foo() {
foo();
}We get:
stderr [0] :: Exception while Exception in event listener for fetch
stderr [0] :: component.js:6:5 InternalError: too much recursionBut when making the fetch event handler async, the component just fails silently.
addEventListener('fetch', async () => {
foo();
});
function foo() {
foo();
}The component fails, but there's no output to stderr at all.
This was happening somewhere deep in a library of a component I was trying to debug, but since there was no error it was really hard to figure out why the component shuts down mid execution
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels