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
When I run the code below, I get "error: Uncaught (in promise) BadResource: Bad resource ID".
const bc = new BroadcastChannel("internal_notification"); bc.postMessage("New listening connected!"); bc.close();
The data seems to be written successfully, but isn't it a bug that the error still occurs?
A workaround I found is to add a setTimeout before close.
const bc = new BroadcastChannel("internal_notification"); bc.postMessage("New listening connected!"); setTimeout(() => { bc.close(); }, 1000);
> deno --version deno 1.28.3 (release, x86_64-pc-windows-msvc) v8 10.9.194.5 typescript 4.8.3
The text was updated successfully, but these errors were encountered:
@crowlKats please take a look
Sorry, something went wrong.
fix: check if BroadcastChannel is open before sending (#17366)
cc806cd
Fixes #16978
2627326
b851b3a
crowlKats
Successfully merging a pull request may close this issue.
When I run the code below, I get "error: Uncaught (in promise) BadResource: Bad resource ID".
The data seems to be written successfully, but isn't it a bug that the error still occurs?
A workaround I found is to add a setTimeout before close.
> deno --version deno 1.28.3 (release, x86_64-pc-windows-msvc) v8 10.9.194.5 typescript 4.8.3
The text was updated successfully, but these errors were encountered: