See this comment:
https://news.ycombinator.com/item?id=45359626
There are other embeddable JS engines out there.
Hmm, like bun? Are there many others?
And you're welcome to implement them and submit them as a PR.
The yt-dlp contributors are not in the business of writing or finding JS runtimes, they're trying to download videos.