News for hackers. Stuff that matters.
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by jraph on Saturday September 10, 2022 @04:29PM (#32794343)
Let's say they end up using Node. Node has a quite complete standard library that lets you access files and everything.

Now if they do it right and only embed some bare JS interpreter, it's still way harder to audit than these < 900 lines, for which it is quite easy to convince oneself that the interpreted script cannot do much.

Re:YouTube-dl has an interpreter for a subset of JavaScript ... by geysersam on Saturday September 10, 2022 @05:02PM (#32794551)
Nowadays they could probably use Deno. Without permissions it doesn't allow network or file access etc.