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
Qwik Runtime
Unknown messages to the PrefetchServiceWorker should thrown an error with console.error('UNKNOWN MESSAGE:', msg);
console.error('UNKNOWN MESSAGE:', msg);
Because of this line here, if the message is not an array, slice doesn't exist and the function throws an error which is difficult to debug:
state.$log$('received message:', type, msg[1], msg.slice(2));
The type should be set as unknown and then validated first as a Qwik message before continuing.
N/A
No response
na
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Which component is affected?
Qwik Runtime
Describe the bug
Unknown messages to the PrefetchServiceWorker should thrown an error with
console.error('UNKNOWN MESSAGE:', msg);
Because of this line here, if the message is not an array, slice doesn't exist and the function throws an error which is difficult to debug:
The type should be set as unknown and then validated first as a Qwik message before continuing.
Reproduction
N/A
Steps to reproduce
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: