Open DustinJSilk opened 1 month ago
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
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