you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 9 months ago

I'm not even sure whether there's a defense against this when trying to limit the user to a subset of JavaScript. It feels like you need to write a compiler or interpreter that doesn't know anything outside of that subset otherwise you can break out of the language sandbox.

  • source