According to the web worker MDN docs(https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Functions_and_classes_available_to_workers), Promise is not in the available list.
But when I try to debug in worker file, and console log the self object, it has Promise inside.
enter image description here
I try to run new Promise()
in web worker, and it works.I am confused why I can call Promise in web worker
New contributor
user12078278 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.