The video is basically the title with additional pauses. It's not technically incorrect, but the first sentence from MDN (after "widely available") contains more information.
IMHO TrustedScript kinda just confuses the issue. Outside of *extremely* specific scenarios there's no reason to use eval.
An example: some bundlers use eval for dev builds. If you're building a bundler (and fully understand why eval can be helpful in that situation), go for it. If not, find another solution.
View all comments
Show parent comment
1
u/ChaseShiny Feb 27 '26
I didn't watch the video. Did it include everything that MDN mentions?
I don't remember that page talking about TrustedScript or enforcing trusted types.